:root {
  --paper: #f7f4ed;
  --ink: #171614;
  --orange: #ff641f;
  --yellow: #ebf522;
  --line: #c8c2b7;
  --muted: #524d46;
  --frame: clamp(22px, 5.2vw, 84px);
  --display: Impact, "Arial Narrow", "Arial Black", system-ui, sans-serif;
  --body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.75 var(--body); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #1260ae; outline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--frame), 1320px); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 900; line-height: .91; letter-spacing: -.018em; }
.section { padding-block: clamp(54px, 8vw, 116px); }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: absolute; top: 8px; left: 8px; z-index: 10; background: white; padding: 12px; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.page-index .site-header { background: var(--orange); border-color: rgb(23 22 20 / .2); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.wordmark { display: inline-grid; justify-items: start; line-height: 1.05; text-decoration: none; }
.wordmark strong { font-size: 19px; font-weight: 900; letter-spacing: -.055em; white-space: nowrap; }
.wordmark span { font: 800 10px/1.25 Arial, sans-serif; letter-spacing: .065em; margin-top: 4px; }
.desktop-nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px clamp(16px, 2.4vw, 40px); }
.desktop-nav a, .mobile-menu a, .site-footer nav a { font-size: 13px; font-weight: 750; text-decoration: none; }
.desktop-nav a { display: flex; align-items: center; min-height: 44px; }
.desktop-nav a:hover, .mobile-menu a:hover, .site-footer nav a:hover, a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.mobile-menu { display: none; }
.mobile-menu summary, .faq-item summary { list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.mobile-menu summary { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; font-weight: 800; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 18px; height: 2px; background: currentColor; }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { position: absolute; left: 0; content: ""; }
.menu-lines::before { top: -5px; }
.menu-lines::after { top: 5px; }
.mobile-menu nav {
  position: absolute; inset: 100% 0 auto; z-index: 2; padding: 8px var(--frame) 14px;
  background: var(--paper); border-bottom: 2px solid var(--ink); box-shadow: 0 12px 20px #1716141a;
}
.mobile-menu a { display: flex; align-items: center; min-height: 49px; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border: 0; }

.button, .text-link, .service-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  width: fit-content; min-height: 46px; font-size: 14px; font-weight: 800;
  text-decoration: none; line-height: 1.4;
}
.button { padding: 11px 16px; border: 1px solid var(--ink); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-line { background: transparent; }
.button-dark:hover { background: var(--paper); color: var(--ink); }
.button-line:hover { background: var(--ink); color: var(--paper); }
.text-link { border-bottom: 1px solid currentColor; min-height: 44px; }
.text-link:hover { border-bottom-width: 2px; }
.arrow { font: 500 19px/1 Arial, sans-serif; flex-shrink: 0; }

.hero { background: var(--orange); overflow: hidden; }
.hero-masthead {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 24px; padding: clamp(28px, 3.4vw, 58px) 0 0;
}
.hero-title { font-size: clamp(4.4rem, 9.15vw, 9.1rem); font-weight: 900; line-height: .89; }
.hero-title span { display: block; white-space: nowrap; }
.hero-message { align-self: end; margin: 0 0 22px; width: max-content; }
.hero-copy { font-weight: 900; font-size: clamp(25px, 3.2vw, 51px); letter-spacing: -.035em; line-height: 1.27; }
.hero-location { margin-top: 12px; font-size: clamp(13px, 1.4vw, 17px); font-weight: 750; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.hero-figure { position: relative; margin-top: 13px; }
.hero-image-cut {
  --lead: clamp(58px, 9vw, 126px);
  --tail: clamp(37px, 6vw, 88px);
  height: clamp(310px, 39vw, 565px);
  clip-path: polygon(0 var(--lead), 100% 0, 100% calc(100% - var(--tail)), 62% 100%, 0 calc(100% - var(--tail) * 1.18));
  background: #b2a898;
}
.hero-image-cut img { object-position: 50% 59%; }
.hero-figure figcaption {
  position: absolute; right: var(--frame); bottom: 0; width: auto;
  font-size: 12px; font-weight: 750; line-height: 1.4;
}
.hero-story { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-block: 10px clamp(36px, 6vw, 88px); }
.hero-story p { font-size: clamp(22px, 3.3vw, 48px); font-weight: 900; line-height: 1.22; letter-spacing: -.05em; }
.hero-story .text-link { white-space: nowrap; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 4vw, 56px); }
.section-heading h2 { display: flex; align-items: end; gap: 12px 18px; flex-wrap: wrap; line-height: 1.15; }
.section-heading h2 .display, .contact-band .display { font-size: clamp(3.15rem, 7vw, 7.25rem); }
.section-heading h2 span + span { font-size: 16px; padding-bottom: 4px; }
.section-heading > p { font-weight: 800; font-size: clamp(16px, 2vw, 26px); line-height: 1.4; }
.service-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(14px, 4vw, 48px); border-top: 1px solid var(--ink); }
.service-link {
  width: 100%; min-height: 86px; border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 2vw, 23px); padding: 14px 5px;
}
.service-link strong, .service-link small { display: block; }
.service-link small { color: var(--muted); margin-top: 4px; font-size: 13px; font-weight: 550; }
.service-link:hover, .case-card a:hover { background: #efebe2; }
.works-section { position: relative; isolation: isolate; }
.works-section::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 58%;
  clip-path: polygon(0 0, 100% 13%, 100% 62%, 0 100%); background: var(--yellow);
}
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); }
.case-card a { display: block; height: 100%; background: var(--paper); text-decoration: none; border-bottom: 1px solid var(--ink); }
.card-image { aspect-ratio: 5 / 4; overflow: hidden; background: #b2a898; }
.card-image-washstand img { object-position: 50% 56%; }
.card-image-toilet img { object-position: 50% 43%; }
.card-image-vent img { object-position: 50% 42%; }
.source-photo { filter: brightness(1.13) contrast(1.025) saturate(.89); }
.source-photo[src$="room-light.webp"],
.source-photo[src$="ceiling-light.webp"] { filter: brightness(1.18) saturate(.88); }
.card-label { display: flex; align-items: end; justify-content: space-between; padding: 15px 6px 19px; }
.card-label p { font-size: 12px; font-weight: 700; color: var(--muted); }
.card-label h3 { font-size: clamp(16px, 2vw, 24px); line-height: 1.25; }
.case-card-featured { grid-column: 1 / -1; }
.case-card-featured a { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.case-card-featured .card-image { aspect-ratio: 1228 / 856; }
.case-card-featured .card-label { align-items: end; gap: 12px; padding: clamp(18px, 4vw, 50px); background: #eeebe1; }
.case-card-featured .card-label h3 { margin-top: 7px; font-size: clamp(24px, 3.65vw, 52px); line-height: 1.12; letter-spacing: -.05em; }
.case-card-featured .case-card-summary { max-width: 20em; margin-top: 13px; color: var(--ink); font-size: 15px; font-weight: 600; }

.about-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); align-items: center; gap: clamp(22px, 6vw, 88px); }
.page-index .about-feature .portrait { order: -1; }
.about-feature-copy h2 { font-size: clamp(25px, 3.4vw, 52px); line-height: 1.3; font-weight: 900; letter-spacing: -.04em; }
.page-about .about-feature-copy h2 { font-size: clamp(25px, 3vw, 42px); }
.page-about .about-feature-copy h2 span { white-space: nowrap; }
.about-feature-copy h2 + p { margin-block: 18px; max-width: 29em; }
.about-stat { color: var(--ink); background: var(--yellow); clip-path: polygon(0 0, 100% 9%, 95% 100%, 0 100%); width: fit-content; padding: 10px 26px 10px 12px; margin-bottom: 18px; font-size: clamp(44px, 7vw, 100px); }
.about-stat span { font-size: .48em; }
.portrait { aspect-ratio: 3 / 2; overflow: hidden; background: #cabeb0; }
.portrait img { object-position: 50% 43%; }
.portrait-original { aspect-ratio: 4 / 5; }
.portrait-original img { width: 162%; height: 162%; max-width: none; margin-left: -31%; margin-top: -27%; }
.eyebrow { margin-bottom: 8px; font-size: 14px; font-weight: 800; }

.page-heading { position: relative; isolation: isolate; padding-block: clamp(44px, 8vw, 120px) clamp(52px, 10vw, 140px); }
.page-heading::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 83%, 34% 100%, 0 92%); }
.page-heading-orange::before { background: var(--orange); }
.page-heading-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: 24px; }
.page-heading h1 { display: grid; gap: 12px; line-height: 1.12; font-size: clamp(22px, 3vw, 45px); letter-spacing: -.04em; }
.page-heading h1 .display { font-size: clamp(3.5rem, 11vw, 11rem); }
.page-heading p { font-weight: 700; max-width: 23em; }
.case-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; }
.case-meta p { font-size: 14px; font-weight: 800; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.detail-gallery figure { display: grid; gap: 9px; align-content: start; }
.detail-gallery img { height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #e9e4d9; }
.detail-gallery figcaption { font-size: 13px; }
.case-detail > .text-link { margin-top: 25px; }
.roof-case { padding-top: clamp(24px, 4vw, 56px); }
.roof-case-intro { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 70px); align-items: start; }
.roof-case .roof-case-cover { grid-template-columns: 1fr; }
.roof-case .roof-case-cover img { aspect-ratio: 1228 / 856; opacity: 1; }
.roof-case-summary { border-top: 3px solid var(--ink); padding-block: 14px; }
.roof-case-summary h2 { margin-bottom: 10px; font-size: clamp(19px, 2vw, 26px); line-height: 1.25; }
.roof-case-summary p { max-width: 24em; }
.roof-case-group { margin-top: clamp(35px, 6vw, 82px); }
.roof-case-group h2 { border-top: 1px solid var(--ink); margin-bottom: 18px; padding-top: 13px; font-size: clamp(20px, 2.8vw, 34px); }
.roof-case-group .detail-gallery { gap: clamp(12px, 2vw, 24px); }
.roof-case-group .detail-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.roof-case-group:last-of-type .detail-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.filter button { min-height: 44px; padding: 6px 15px; background: transparent; border: 1px solid var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.filter button:hover, .filter button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); gap: 24px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row h2, .company-section h2, .contact-option h2, .contact-location h2 { font-size: clamp(22px, 2.5vw, 36px); line-height: 1.3; }
.service-row p { max-width: 30em; margin-top: 8px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 14px 0 0; padding: 0; }
.service-tags li { background: #eae6dd; padding: 3px 9px; font-size: 13px; font-weight: 700; }
.service-actions, .contact-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; }
.service-actions { margin-top: 17px; }
.service-image { position: relative; aspect-ratio: 5 / 3; overflow: hidden; }
.service-image-washstand img { object-position: 50% 54%; }
.service-image-vent img { object-position: 50% 40%; }
.service-image-home-interior img { object-position: 50% 59%; }
.service-image figcaption {
  position: absolute; inset: auto 8px 8px auto; padding: 2px 8px;
  color: var(--ink); background: var(--paper); font-size: 11px; font-weight: 750;
}
.company-section { padding-top: 0; }
.info-list { border-top: 1px solid var(--ink); margin: 20px 0 0; }
.info-list > div { display: grid; grid-template-columns: minmax(100px, .25fr) 1fr; border-bottom: 1px solid var(--line); padding: 16px 0; }
.info-list dt { font-weight: 800; }
.info-list dd { margin: 0; }
.faq-item { border-top: 1px solid var(--line); padding: 0 3px; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 65px; font-weight: 800; }
.faq-item summary span::before { content: "+"; font: 400 25px/1 Arial, sans-serif; }
.faq-item[open] summary span::before { content: "−"; }
.faq-item p { padding-bottom: 21px; max-width: 38em; }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-option { padding: clamp(20px, 3vw, 40px); border: 1px solid var(--ink); }
.contact-option h2 { margin-bottom: 15px; }
.phone { display: inline-block; font: 800 clamp(23px, 4.4vw, 55px)/1.2 Arial, sans-serif; letter-spacing: -.065em; }
.contact-option p { margin-top: 12px; }
.email { overflow-wrap: anywhere; }
.contact-location { margin-top: 38px; }
.contact-location h2 { margin-bottom: 8px; }
.contact-band { background: var(--orange); }
.contact-band-inner { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: clamp(30px, 6vw, 80px); }
.contact-band h2 { font-size: clamp(17px, 2vw, 26px); line-height: 1.3; margin-top: 8px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding-block: 30px 38px; }
.site-footer p { font-size: 13px; line-height: 1.6; margin-top: 10px; }
.site-footer nav a { display: flex; align-items: center; min-height: 42px; }

@media (max-width: 1050px) {
  .hero-title { font-size: clamp(4.3rem, 10.6vw, 8rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .site-header-inner { min-height: 61px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .hero-masthead { display: block; padding-top: 28px; }
  .hero-title { font-size: clamp(3.15rem, 15.3vw, 7.25rem); }
  .hero-message { margin: 21px 0 0; width: auto; }
  .hero-copy { font-size: clamp(22px, 5.2vw, 36px); }
  .hero-copy br { display: none; }
  .hero-location { margin-top: 4px; }
  .hero-actions { flex-direction: row; gap: 7px; margin-top: 12px; }
  .hero-image-cut { --lead: clamp(37px, 12vw, 69px); --tail: 27px; height: clamp(218px, 63vw, 385px); }
  .hero-image-cut img { object-position: 55% 63%; }
  .hero-figure figcaption { position: static; width: auto; margin: 0 var(--frame); text-align: right; }
  .hero-story { flex-wrap: wrap; gap: 4px 16px; padding-top: 14px; }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .section-heading > p br { display: none; }
  .service-links { grid-template-columns: 1fr; }
  .service-link { min-height: 56px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-card-featured a, .roof-case-intro { grid-template-columns: 1fr; }
  .case-card-featured .card-label { padding: 16px 16px 19px; }
  .roof-case-group:last-of-type .detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-feature, .page-heading-inner, .service-row, .contact-options { grid-template-columns: 1fr; }
  .about-feature { align-items: start; }
  .portrait { width: min(100%, 540px); }
  .page-index .about-feature .portrait { order: 0; }
  .page-heading-inner { gap: 13px; }
  .page-heading h1 { gap: 8px; }
  .service-image { max-width: 480px; }
}

@media (max-width: 500px) {
  .roof-case-group .detail-gallery, .roof-case-group:last-of-type .detail-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  :root { --frame: 18px; }
  .hero-title { font-size: clamp(2.65rem, 15.3vw, 3.75rem); }
  .hero-actions .button { padding-inline: 10px; font-size: 13px; gap: 8px; }
  .detail-gallery { grid-template-columns: 1fr; }
}
