/* ==========================================================
   Uchida Dyeing Works — LP
   PC design: 1440px / SP design: 375px  (breakpoint: 767px)
   ========================================================== */

/* ---------- base ---------- */
:root {
  --pad: clamp(24px, 8.333vw, 120px);
  --edge: calc((100vw - min(1200px, 100vw - 2 * var(--pad))) / 2);
  --dark: #1c1c1c;
  --gray: #ededed;
  --sec: 180px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 101px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 34px;
  color: #000;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { filter: brightness(0.7); }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 700; }
.underline { text-decoration: underline; text-underline-offset: 3px; }
.sp-only { display: none; }
.pagetop {
  display: block;
  position: fixed;
  z-index: 150;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  width: 91px;
  height: 91px;
  line-height: 0;
  transition: opacity .3s, visibility .3s;
}
.pagetop img { display: block; width: 100%; height: 100%; }
.pagetop:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
body.is-modal-open .pagetop { visibility: hidden; opacity: 0; pointer-events: none; }
.container { width: calc(100% - 2 * var(--pad)); max-width: 1200px; margin-inline: auto; }

.h2 { font-size: 46px; font-weight: 300; line-height: 1; }
.h3 { font-size: 23px; font-weight: 700; line-height: normal; }
.h4 { font-family: "Noto Sans Display", "Open Sans", sans-serif; font-size: 18px; font-weight: 700; line-height: 34px; }

/* h3 with a rule that runs out to the page edge */
.h3--line { display: flex; align-items: center; gap: 16px; margin-left: calc(-1 * var(--edge)); }
.h3--line::before { content: ""; flex: none; width: calc(var(--edge) - 16px); height: 1px; background: currentColor; }

/* arrow link button */
.btn { position: relative; display: inline-block; width: 162px; font-size: 20px; line-height: normal; }
.btn::after { content: ""; display: block; width: 154px; height: 1px; margin-top: 10px; background: currentColor; }
.btn--light { color: #fff; }
.btn--dark { color: #000; }
a.btn:hover { filter: none; }
.btn__arrow { position: absolute; left: 143px; top: 33px; width: 12px; height: 4px; }
.btn__arrow img { position: absolute; max-width: none; left: -4.17%; top: -17.34%; width: 129.85%; height: 129.85%; }

.overlay-grad, .overlay-flat { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: clamp(560px, 60.833vw, 876px); overflow: hidden; color: #fff; }
.hero__visual { position: absolute; inset: 0; z-index: 0; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.hero > :not(.hero__visual):not(.hero__bg):not(.site-header) { z-index: 1; }
.logo { position: relative; display: block; overflow: hidden; }
.logo img { position: absolute; top: 0; left: 0; height: 100%; width: 210.67%; max-width: none; }
.site-header { position: fixed; top: 0; left: 0; z-index: 200; width: 100%; height: 101px; color: #fff; transition: background-color .3s, color .3s, box-shadow .3s; }
.hero > .site-header { position: fixed; }
.site-header.is-scrolled { background: rgba(0, 0, 0, .3); }
.site-header.is-past-hero { background: rgba(255, 255, 255, .97); color: #000; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.site-header.is-past-hero .logo img { filter: invert(1); }
.site-header .gnav a { color: inherit; }
.logo--header { position: absolute; top: 32px; left: 36px; width: 123px; height: 45px; }
.gnav { position: absolute; top: 42px; left: 50%; transform: translateX(-50%); display: flex; gap: 32px; white-space: nowrap; font-size: 18px; font-weight: 400; line-height: normal; }
.hero__title { position: absolute; right: var(--pad); top: 59%; font-size: clamp(32px, 3.194vw, 46px); font-weight: 300; line-height: normal; }
.hero__btn { position: absolute; right: var(--pad); bottom: 63px; }

/* ---------- intro ---------- */
.intro { position: relative; height: clamp(520px, 65.97vw, 950px); overflow: hidden; background: #000; color: #fff; }
@media (max-width: 767px) {
  .intro::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .3); }
}
.intro__bg { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; line-height: 0; }
.intro__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.intro__imgs { position: absolute; inset: 0; display: none; grid-template-columns: repeat(3, 1fr); }
.intro__img, .intro__img img { width: 100%; height: 100%; }
.intro__img img { object-fit: cover; }
.intro__img--1 img { object-position: 50% 100%; }
.intro__img--2 img { object-position: 73.5% 100%; }
.intro__img--3 img { object-position: 46.7% 0; }
.intro .overlay-grad { z-index: 1; }
.intro__text { position: absolute; z-index: 2; left: calc(var(--pad) + 4px); top: 62.3%; width: min(604px, calc(100% - 2 * var(--pad))); font-size: 18px; line-height: 43px; }

/* ---------- projects ---------- */
.projects { display: flex; flex-direction: column; align-items: center; gap: 100px; padding: var(--sec) 0; background: var(--dark); color: #fff; }
.projects__list { display: flex; justify-content: center; gap: 10px; }
.pcard { flex: 0 1 292px; min-width: 0; }
.pcard__img { aspect-ratio: 292 / 403; overflow: hidden; background: #1c1c1c; line-height: 0; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); vertical-align: top; }
.pcard__body { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; line-height: normal; }
.pcard__title { font-size: 20px; text-shadow: 0 4px 4px rgba(0, 0, 0, .25); }
.pcard__cat { font-size: 14px; }

/* ---------- why us ---------- */
.why { padding: var(--sec) 0; overflow: hidden; }
.why__lead { margin-top: 25px; font-size: 20px; line-height: normal; }
.features { container-type: inline-size; margin-top: 100px; }
.feature { display: grid; grid-template-columns: var(--cols); align-items: start; }
.feature--3 { padding-bottom: calc(105 * 100cqw / 1200); }
.feature__img { grid-column: 1; grid-row: 1; aspect-ratio: var(--ar); overflow: hidden; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__text { position: relative; grid-column: 3; grid-row: 1; margin-top: calc(var(--ty) * 100cqw / 1200); padding-bottom: 40px; }
.feature__text::before { content: ""; position: absolute; top: 15px; right: calc(100% + var(--gap) * 100cqw / 1200); width: calc(var(--len) * 100cqw / 1200); height: 1px; background: #000; }
.feature__text .h3 { margin-bottom: 60px; }
.feature__text p + p { margin-top: 34px; }
.feature--2 .feature__text { grid-column: 1; padding-bottom: 60px; }
.feature--2 .feature__text::before {
  left: calc(-1 * var(--edge));
  right: calc(100% + var(--gap) * 100cqw / 1200);
  width: auto;
}
.feature--2 .feature__text p:last-child { margin-bottom: 0; }
.feature--2 .feature__img { grid-column: 3; }

/* ---------- about ---------- */
.about { padding: var(--sec) 0; border-top: 1px solid #000; }
.about__grid { display: grid; grid-template-columns: minmax(0, 390fr) minmax(0, 810fr); }
.about__grid .h2 { margin-top: 25px; }
.about__main { position: relative; padding-top: 42px; }
.about__asof { position: absolute; top: 0; right: 0; line-height: normal; }
.about__table > div { display: grid; grid-template-columns: minmax(0, 346fr) minmax(0, 464fr); padding: 37px 0; border-top: 1px solid #cecdcd; }
.about__table > div:last-child { border-bottom: 1px solid #cecdcd; }
.about__table dt { font-size: 18px; line-height: normal; }
.about__table dd { font-size: 16px; line-height: normal; }
.about__table > div:nth-child(2) dd { line-height: 34px; }
.about__map { margin-top: 100px; aspect-ratio: 3 / 1; }
.about__map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(100%); }
.about__note { margin-top: 40px; }

/* ---------- history ---------- */
.history { position: relative; padding: 120px 0; overflow: hidden; background: #7f4a4a; color: #fff; }
.history__bg, .history__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.history__bg img { filter: blur(6px); transform: scale(1.06); }
.history::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(35, 31, 28, .45); backdrop-filter: blur(2px); }
.history__tint { z-index: 0; }
.history__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 414fr) minmax(0, 713fr); column-gap: 73px; }
.history__h3 { margin-bottom: 0; }
.history__photo { margin-top: 80px; }
.history__photo img { width: 93%; aspect-ratio: 385 / 256; object-fit: cover; }
.history__photo figcaption { margin-top: 20px; }
.timeline { position: relative; margin-top: 91px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 20px; bottom: 20px; width: 1px; background: #fff; }
.timeline::after { content: ""; position: absolute; left: 4px; bottom: 5px; width: 1px; height: 15px; background: url("../images/pc/Vector15.svg") no-repeat center / 100% 100%; }
.timeline li { position: relative; display: flex; gap: 39px; padding-left: 32px; margin-bottom: 48px; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; background: url("../images/pc/Ellipse1.svg") no-repeat center / contain; }
.timeline__year { flex: none; width: 38px; font-size: 18px; }

/* ---------- philosophy ---------- */
.philosophy { padding: var(--sec) 0; }
.philosophy .h3--line { margin-bottom: 60px; }
.phil__value { display: flex; gap: 58px; margin-top: 40px; align-items: flex-start; }
.phil__value > img,
.phil__value > picture { flex: none; width: 37.67%; aspect-ratio: 452 / 339; line-height: 0; }
.phil__value img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phil__value p { flex: 1; min-width: 0; }
.phil__h4--2 { margin-top: 120px; }
.phil__h4--2 + p { margin-top: 40px; }

.strip { margin: 114px 0 135px; overflow: hidden; --dur: 60s; }
.strip__track { display: flex; width: max-content; animation: strip-scroll var(--dur) linear infinite; will-change: transform; }
.strip__set { display: flex; gap: 0; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.strip__set li { flex: none; width: 294px; height: 415px; line-height: 0; }
.strip__set picture { display: block; width: 100%; height: 100%; }
.strip__set img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.strip__item--tall { height: 418px; }
@keyframes strip-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.split { display: grid; grid-template-columns: minmax(0, 761px) 1fr; }
.split .h3 { grid-column: 1; margin-bottom: 0; }
.split p { grid-column: 1; margin-top: 60px; }
.split__fig { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
.split__fig img { width: 100%; height: 100%; object-fit: cover; }
.split--oeko { align-items: start; grid-template-rows: auto 1fr; }
.split__fig--oeko { width: 185px; height: 266px; margin: 19px 140px 0 0; }
.split--brand { margin-top: 100px; align-items: center; }
.split__fig--brand { width: 118px; height: 118px; margin-right: 173px; }
.philosophy__more { display: flex; justify-content: center; margin-top: 100px; }

/* ---------- service ---------- */
.service { border-top: 1px solid #000; background: var(--gray); padding-bottom: var(--sec); }
.service__h2 { padding-top: var(--sec); text-align: center; }
.service .h3--line { margin-top: 117px; }
.svc-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 36px; margin-top: 60px; font-size: 18px; }
.svc-lead { margin-top: 60px; text-align: center; }
.svc-h4 { margin-top: 100px; }
.svc-h4 + * { margin-top: 40px; }
.dyeing { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 100px; align-items: center; }
.dyeing__sep { height: 44px; background: #000; }
.dyeing__note { margin-top: 40px; }

.card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px 20px; border: 1px solid #000; border-radius: 10px; box-shadow: 2px 2px 4px rgba(0, 0, 0, .4); overflow: hidden; }
.card__title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 300; line-height: 34px; }
.card__title--16 { font-size: 16px; }
.card__title img { flex: none; width: 16px; height: 16px; }
.card--sm { padding: 20px 10px; min-height: 110px; }
.card__single:not(.card__single--29) { object-fit: cover; }
.card__single--27 { width: min(100%, 353px); aspect-ratio: 353 / 293; }
.card__single--29 { width: min(100%, 353px); height: auto; vertical-align: top; }
.pair { position: relative; width: min(100%, var(--w)); }
.pair picture { position: absolute; max-width: none; line-height: 0; }
.pair picture img { position: static; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

.cards--dyeing { display: grid; grid-template-columns: minmax(0, 380fr) minmax(0, 642fr); gap: 30px; margin-top: 134px; padding-inline: 6.17%; }
.cards--dyeing .card { box-shadow: 2px 2px 4px rgba(0, 0, 0, .6); }
.cards--dyeing .card:first-child { padding: 20px 10px; }
.cards--dyeing .card:nth-child(n+2) { padding-inline: 10px; }
.svc-indigo { margin-top: 40px; line-height: 40px; max-width: 649px; }
.svc-h4--wash { margin-top: 100px; line-height: 40px; }

.denim { margin: 40px auto 0; width: 309px; text-align: center; line-height: 40px; }
.denim img { width: 309px; height: 412px; object-fit: cover; }
.denim figcaption { margin-top: 6px; }
.swipe-hint { display: none; }
.wash-scroll { margin-top: 80px; }
.wash > div { position: relative; display: grid; grid-template-columns: 241px minmax(0, 1fr); padding: 40px 0; border-top: 1px solid #000; line-height: 40px; }
.wash > div::before { content: ""; position: absolute; left: 241px; top: 0; bottom: 0; border-left: 1px solid #000; }
.wash > div:first-child { padding-top: 0; border-top: 0; }
.wash > div:last-child { padding-bottom: 0; }
.wash dt { align-self: center; }
.wash dd { align-self: center; padding-left: 94px; }

.svc-h4--bleach { margin-top: 200px; }
.bleach-text p + ol, .bleach-text ol + p { margin-top: 34px; }
.bleach-text ol { list-style: decimal; padding-left: 24px; }

.svc-band { background: var(--gray); padding: 100px 0; }
.svc-h4--special { margin-top: 200px; }
.svc-band--special { padding-top: 100px; }
.cards--bleach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: start; }
.cards__col { display: flex; flex-direction: column; gap: 30px; }
.cards--special { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.cards--special .card { padding-inline: 20px; }
.card--hand { min-height: 128px; padding: 20px 10px; }
.cards__note { align-self: center; line-height: 40px; max-width: 581px; }

.svc-h4--flex { margin-top: 100px; }
.svc-h4--flex + .flex-text { margin-top: 40px; }
.flex-text--2 { margin-top: 0; }
.machines { display: grid; grid-template-columns: 1fr 1fr; margin-top: 60px; height: clamp(160px, 24.1vw, 347px); background: #fff; }
.machines picture, .machines img { width: 100%; height: 100%; }
.machines img { object-fit: cover; object-position: center; }

/* ---------- order flow ---------- */
.order { padding: var(--sec) 0; border-block: 1px solid #000; }
.order .h3--line { margin-top: 117px; }
.steps { position: relative; container-type: inline-size; margin-top: 60px; padding-left: 6.34%; }
.steps__cols { display: grid; grid-template-columns: minmax(0, 361fr) minmax(0, 639fr); column-gap: 10.18%; }
.steps__list { display: flex; flex-direction: column; gap: 56px; }
.steps__list li { display: flex; gap: 18px; font-size: 18px; }
.steps__list li > div { min-width: 0; }
.steps__list .steps__t { font-size: 18px; }
.steps__list li > div p:not(.steps__t) { margin-top: 9px; font-size: 16px; }
.steps__n { flex: none; }
.steps__arrow { position: absolute; max-width: none; }
.steps__arrow--1 { left: 0; top: 5px; width: 4.09%; }
.steps__arrow--1 img { width: 100%; height: auto; max-width: none; }
.steps__arrow--2 { left: 43.1%; top: 8.5px; width: 7.36px; height: 306px; }

/* ---------- price ---------- */
.price { padding: var(--sec) 0; border-bottom: 1px solid #000; }
.price .h2 + p { margin-top: 117px; }

/* ---------- bands ---------- */
.band { position: relative; z-index: 0; height: 688px; overflow: hidden; color: #fff; }
.band__bg { z-index: 0; }
.band__bg, .band__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__bg img { object-position: center; }
.band__inner { position: relative; z-index: 1; height: 100%; padding-top: 197px; }
.band__lead { font-size: clamp(28px, 3.194vw, 46px); line-height: normal; }
.band__sub { margin-top: 40px; font-weight: 700; }
.band__btn { position: absolute; right: 0; top: 457px; }

/* ---------- case studies ---------- */
.cases { display: flex; flex-direction: column; align-items: center; gap: 106px; padding: var(--sec) 0; background: var(--dark); color: #fff; }
.cases__list { display: flex; flex-direction: column; gap: 40px; }
.case { padding: 40px; background: #fff; color: #000; display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.case__head { display: flex; align-items: center; gap: 16px; }
.case__line { flex: none; width: 44px; height: 1px; background: #000; }
.case .h3 { white-space: nowrap; }
.case__body { display: flex; gap: 40px; align-items: flex-start; }
.case__body > picture { flex: none; display: block; width: min(480px, 100%); aspect-ratio: 3 / 2; line-height: 0; overflow: hidden; }
.case__body > picture img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.case__text { flex: 1; min-width: 0; }
.case__text p + p { margin-top: 34px; }

/* ---------- FAQ ---------- */
.faq { padding: var(--sec) 0 140px; border-block: 1px solid #000; }
.faq__list { margin-top: 117px; }
.faq__item { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #000; }
.faq__q { font-size: 20px; font-weight: 300; line-height: 34px; }
.faq__q button { display: flex; align-items: flex-start; gap: 18px; width: 100%; text-align: left; }
.faq__q button:focus-visible { outline: 2px solid #000; outline-offset: 6px; }
.faq__qtext { flex: 1; min-width: 0; }
.faq__chev { flex: none; width: 28px; height: 14px; margin: 10px 27px 0 0; transition: transform .3s ease; }
.faq__q button[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s linear .3s; }
.faq__a > div { min-height: 0; overflow: hidden; }
.faq__a p { max-width: 1050px; margin-left: 39px; padding-top: 20px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.faq__contact { margin-top: 100px; max-width: 486px; }
.faq__contact a { filter: none; }

/* ---------- contact ---------- */
.contact { padding: var(--sec) 0 200px; border-top: 1px solid #000; background: var(--gray); }
.contact .h2 { text-align: center; }
.contact__hours { margin-top: 117px; text-align: center; }
.contact__form { margin-top: 28px; min-height: 547px; background: #fff; }
.contact__form .hs-form-frame { padding: 40px 24px; }

/* ---------- footer ---------- */
.footer { padding: 80px calc(var(--pad) + 1px) 60px; background: var(--dark); color: #fff; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo--footer { width: 191px; height: 70px; flex: none; }
.logo--footer img { left: -1.66%; width: 214.15%; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; font-size: 18px; font-weight: 400; line-height: normal; }
.footer__ig { flex: none; width: 37px; height: 37px; }
.footer__ig img { width: 100%; height: 100%; object-fit: cover; }
.footer__legal { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 23px; font-size: 14px; font-weight: 400; line-height: normal; }
.footer__legal small { font-size: 14px; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip__track { animation: none; }
  .faq__a, .faq__chev { transition: none; }
}

@media (min-width: 768px) {
  .about__table > div:nth-child(2) dt { align-self: center; }
}

/* ---------- tablet: keep header from overlapping ---------- */
@media (max-width: 1100px) and (min-width: 768px) {
  .hero > .site-header { height: 150px; }
  html { scroll-padding-top: 150px; }
  .gnav { top: 90px; left: 36px; transform: none; flex-wrap: wrap; gap: 8px 24px; max-width: calc(100% - 72px); }
  .split__fig--oeko { margin-right: 0; }
  .split__fig--brand { margin-right: 0; }
  .feature__text .h3 { margin-bottom: 30px; }
  .cards--dyeing { padding-inline: 0; }
  .cases .case__body { flex-direction: column; }
  .case__body > picture { width: 100%; }
}

/* ==========================================================
   SP
   ========================================================== */
@media (max-width: 767px) {
  :root { --pad: 13px; --sec: 120px; }
  .container { max-width: 640px; }
  .sp-only { display: inline; }

  .h3--line { gap: 20px; margin-left: -13px; }
  .h3--line::before { width: 40px; }

  .btn__arrow { left: 143px; }

  /* hero */
  .hero { height: 685px; }
  .hero__bg { object-position: 50% 50%; }
  .logo--header { top: 18px; left: 21px; width: 107px; height: 39px; }
  .logo--header picture,
  .logo--header picture img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: left center; left: 0; }
  .gnav { display: none; }
  .hero > .site-header { height: 72px; background: rgba(0, 0, 0, .3); }
  .site-header.is-past-hero { background: rgba(0, 0, 0, .3); color: #fff; box-shadow: none; }
  .site-header.is-past-hero .logo img,
  .site-header.is-past-hero .logo picture img { filter: none; }
  html { scroll-padding-top: 72px; }
  .hero__title { top: 210px; right: 12px; width: 345px; max-width: none; text-align: right; font-size: 46px; }
  .hero__btn { right: 12px; bottom: auto; top: 518px; }

  .pagetop { width: 58px; height: 58px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom, 0px)); }

  /* intro */
  .intro { height: 747px; }
  .intro__bg { display: none; }
  .intro__imgs { display: block; }
  .intro__img { position: absolute; top: 0; height: 100%; }
  .intro__img--1 { left: -42.67%; width: 72%; }
  .intro__img--1 img { object-position: 50% 50%; }
  .intro__img--2 { left: 29.33%; width: 61.33%; }
  .intro__img--3 { left: 67.73%; width: 44%; }
  .intro__text { left: 13px; top: 137px; width: calc(100% - 26px); max-width: 640px; font-size: 19px; }

  /* projects */
  .projects { gap: 100px; }
  .projects__list { flex-direction: column; gap: 30px; }
  .pcard { flex: none; width: 100%; }
  .pcard__img { aspect-ratio: 350 / 349; }
  .pcard:nth-child(2) .pcard__img { aspect-ratio: 350 / 352; }
  .pcard:nth-child(3) .pcard__img { aspect-ratio: 350 / 403; }
  .pcard:nth-child(3) .pcard__img img { object-position: 50% 50%; }
  .pcard__body { margin-top: 20px; }
  .pcard__cat { font-size: 16px; }

  /* why */
  .features { margin-top: 100px; display: flex; flex-direction: column; gap: 60px; }
  .feature { display: block; padding-bottom: 0 !important; }
  .feature__img { aspect-ratio: 350 / 310; }
  .feature__text { margin-top: 30px; padding-bottom: 0; }
  .feature__text::before { display: none; }
  .feature__text .h3 { margin-bottom: 20px; }
  .feature--1 { order: 1; }
  .feature--2 { order: 2; }
  .feature--3 { order: 3; }
  .why { padding-bottom: var(--sec); }

  /* about */
  .about__grid { display: flex; flex-direction: column; align-items: center; gap: 100px; }
  .about__grid .h2 { margin-top: 0; }
  .about__main { width: 100%; padding-top: 52px; }
  .about__asof { right: 0; }
  .about__table > div { grid-template-columns: 144px minmax(0, 1fr); column-gap: 20px; padding: 20px 0; align-items: start; }
  .about__table > div:nth-child(2) dt,
  .about__table dt { align-self: start; }
  .about__map { margin-top: 100px; }

  /* history */
  .history { padding: 100px 0; }
  .history__grid { display: flex; flex-direction: column; }
  .history__photo { margin-top: 60px; }
  .history__photo img { width: 100%; aspect-ratio: 350 / 233; }
  .timeline { margin-top: 100px; }
  .timeline li { margin-bottom: 20px; }

  /* philosophy */
  .philosophy .h3--line { margin-bottom: 60px; }
  .phil__h4 { margin-bottom: 20px; }
  .phil__value { flex-direction: column; gap: 40px; margin-top: 0; }
  .phil__value > img,
  .phil__value > picture { width: 100%; aspect-ratio: 2600 / 1950; }
  .phil__h4--2 { margin-top: 80px; }
  .phil__h4--2 + p { margin-top: 0; }
  .strip { margin: 120px 0 100px; --dur: 35s; }
  .strip__set li { width: 159px; height: 225px; }
  .strip__item--tall { height: 227px; }
  .split { display: block; }
  .split .h3 { margin-bottom: 0; }
  .split p { margin-top: 60px; }
  .split__fig { margin: 40px auto 0 !important; }
  .split--brand { margin-top: 100px; }
  .split--brand .h3 { max-width: 303px; }
  .philosophy__more { margin-top: 100px; }

  /* service */
  .service { background: var(--gray); border-bottom: 1px solid #000; padding-bottom: var(--sec); }
  .service__h2 { padding-top: 119px; }
  /* Serviceの下線(1px)とOrder flowの上線が重なって2pxにならないようにする */
  .order { border-top: 0; }
  .svc-nav { flex-direction: column; align-items: center; gap: 20px; margin-top: 40px; }
  .svc-lead { margin-top: 60px; }
  .svc-h4 { margin-top: 80px; }
  .svc-h4 + * { margin-top: calc(40 * 100vw / 750); }
  .container:has(> .svc-h4--special) + .svc-band--special { margin-top: calc(40 * 100vw / 750); }
  .svc-h4--flex + .flex-text { margin-top: calc(40 * 100vw / 750); }
  .dyeing { grid-template-columns: 1fr; gap: 30px; }
  .dyeing__sep { display: none; }
  .cards--dyeing { grid-template-columns: 1fr; gap: 20px; margin-top: 134px; padding-inline: 0; }
  .card { padding: 24px 10px; box-shadow: 2px 2px 4px rgba(0, 0, 0, .6); }
  .cards--dyeing .card:first-child { padding: 20px 10px; }
  .card--sm { padding: 24px 10px; min-height: 0; }
  .card__single--27 { width: 230px; aspect-ratio: 230 / 190; }
  .card__single--29 { width: 238px; max-width: 100%; height: auto; }
  .svc-indigo { margin-top: 40px; }
  .svc-h4--wash { margin-top: 100px; }
  .denim { width: 137px; margin-top: calc(40 * 100vw / 750); }
  .denim img { width: 137px; height: 183px; }
  .denim figcaption { margin-top: 10px; }
  .swipe-hint { display: block; margin-top: 30px; height: 40px; background: #f8f8f8; font-size: 14px; line-height: 40px; text-align: center; }
  .wash-scroll { margin-top: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wash { min-width: 844px; margin-left: 3px; }
  .wash > div { grid-template-columns: 206px minmax(0, 1fr); }
  .wash > div::before { left: 206px; }
  .wash dd { padding-left: 33px; }
  .svc-h4--bleach { margin-top: 80px; }
  .svc-band { background: transparent; padding: 0; }
  .svc-band--special { padding: 0; }
  .svc-band .container { padding-top: 0; }
  .cards--bleach { display: flex; flex-direction: column; gap: 20px; margin-top: 100px; }
  .cards__col { display: contents; }
  .cards--bleach .card { align-self: stretch; width: 100%; padding: 24px 10px; gap: 20px; box-shadow: 2px 2px 4px rgba(0, 0, 0, .6); }
  .cards--bleach .card--sm { gap: 0; min-height: 0; padding: 24px 10px; }
  .cards--bleach .card__title { justify-content: center; max-width: 100%; }
  .cards--bleach picture { display: block; max-width: 238px; margin-inline: auto; }
  .cards--bleach .card__single--29 { width: 238px; max-width: 100%; height: auto; object-fit: unset; display: block; }
  .svc-h4--special { margin-top: 100px; }
  .cards--special { grid-template-columns: 1fr; gap: 20px; margin-top: 0; }
  .cards--special .card { padding-inline: 10px; }
  .card--hand { min-height: 128px; padding: 20px 10px; text-align: left; }
  .cards__note { align-self: stretch; }
  .svc-h4--flex { margin-top: 100px; }
  .machines { display: flex; flex-direction: column-reverse; height: auto; margin-top: 40px; }
  .machines picture { height: auto; }
  .machines__b { aspect-ratio: 397 / 234; }
  .machines__a { aspect-ratio: 397 / 230; }

  /* order */
  .steps { padding-left: 38px; }
  .steps__cols { display: flex; flex-direction: column; gap: 56px; }
  .steps__arrow--1 { left: 0; top: 5px; width: 7.36px; height: calc(100% - 5px); }
  .steps__arrow--1 img { width: 100%; height: 100%; }
  .steps__arrow--2 { display: none; }

  /* price */
  .price .h2 + p { margin-top: 80px; }

  /* bands */
  .band { height: 584px; }
  .band__bg img { object-fit: cover; object-position: 50% 50%; }
  .band__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 60px; padding-top: 80px; }
  .band__lead { font-size: 24px; }
  .band__sub { margin-top: 0; }
  .band__btn { position: relative; top: auto; right: auto; }

  /* case */
  .cases { gap: 100px; }
  .case { padding: 40px 20px; }
  .case .h3 { white-space: normal; }
  .case__head { width: 100%; }
  .case__head .h3 { max-width: 208px; }
  .case__body { flex-direction: column; gap: 40px; }
  .case__body > picture { width: 100%; }

  /* faq */
  .faq { padding-bottom: 120px; }
  .faq__list { margin-top: 100px; }
  .faq__chev { margin-right: 0; }
  .faq__a p { margin-left: 36px; }

  /* contact */
  .contact { padding-bottom: 120px; }
  .contact__hours { margin-top: 117px; }
  .contact__form { margin-top: 40px; min-height: 697px; }

  /* footer */
  .footer { padding: 80px 20px; }
  .footer__row { flex-direction: column; gap: 40px; }
  .footer__nav { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 32px; }
  .footer__legal { margin-top: 40px; gap: 10px; }
}


/* ---- image pairs (generated from Figma geometry) ---- */
.pair--pigment{--w:563.133px;aspect-ratio:563.133/247.5}
.pair--pigment picture:nth-child(1){left:45.591%;top:0%;width:54.409%;height:100%}
.pair--pigment picture:nth-child(2){left:0%;top:5.022%;width:48.871%;height:94.977%}
.pair--sulfur{--w:600.45px;aspect-ratio:600.45/249.555}
.pair--sulfur picture:nth-child(1){left:0%;top:0%;width:48.938%;height:99.999%}
.pair--sulfur picture:nth-child(2){left:51.723%;top:0.004%;width:48.277%;height:99.996%}
.pair--gradient{--w:536.001px;aspect-ratio:536.001/244.819}
.pair--gradient picture:nth-child(1){left:48.414%;top:0.057%;width:51.586%;height:99.943%}
.pair--gradient picture:nth-child(2){left:0%;top:0%;width:46.082%;height:99.487%}
.pair--uneven{--w:549px;aspect-ratio:549/243}
.pair--uneven picture:nth-child(1){left:0%;top:0%;width:48.27%;height:99.588%}
.pair--uneven picture:nth-child(2){left:49.18%;top:0.823%;width:50.82%;height:99.177%}
.pair--tie{--w:537px;aspect-ratio:537/227}
.pair--tie picture:nth-child(1){left:49.907%;top:0%;width:50.093%;height:100%}
.pair--tie picture:nth-child(2){left:0%;top:0%;width:55.866%;height:100%}
.pair--itajime{--w:550px;aspect-ratio:550/224}
.pair--itajime picture:nth-child(1){left:42.545%;top:0%;width:57.455%;height:100%}
.pair--itajime picture:nth-child(2){left:0%;top:0%;width:47.273%;height:100%}
.pair--spray{--w:537px;aspect-ratio:537/247}
.pair--spray picture:nth-child(1){left:0%;top:0%;width:50.652%;height:100%}
.pair--spray picture:nth-child(2){left:47.858%;top:0%;width:52.142%;height:100%}
.pair--brushed{--w:507px;aspect-ratio:507/248}
.pair--brushed picture:nth-child(1){left:0%;top:0%;width:49.704%;height:100%}
.pair--brushed picture:nth-child(2){left:45.957%;top:0%;width:54.043%;height:100%}
@media (max-width:767px){
  .pair--pigment{--w:296.002px;aspect-ratio:296.002/209.318}
  .pair--pigment picture:nth-child(1){left:30.986%;top:0%;width:69.014%;height:78.835%}
  .pair--pigment picture:nth-child(2){left:0%;top:25.124%;width:61.99%;height:74.876%}
  .pair--sulfur{--w:263.699px;aspect-ratio:263.699/225.368}
  .pair--sulfur picture:nth-child(1){left:0%;top:0%;width:70.177%;height:69.736%}
  .pair--sulfur picture:nth-child(2){left:30.77%;top:30.266%;width:69.23%;height:69.734%}
  .pair--gradient{--w:268.002px;aspect-ratio:268.002/217.188}
  .pair--gradient picture:nth-child(1){left:31.287%;top:24.969%;width:68.713%;height:75.031%}
  .pair--gradient picture:nth-child(2){left:0%;top:0%;width:61.382%;height:74.688%}
  .pair--uneven{--w:272.771px;aspect-ratio:272.771/213.819}
  .pair--uneven picture:nth-child(1){left:0%;top:0%;width:64.19%;height:74.888%}
  .pair--uneven picture:nth-child(2){left:32.404%;top:25.437%;width:67.596%;height:74.563%}
  .pair--tie{--w:267.664px;aspect-ratio:267.664/195.996}
  .pair--tie picture:nth-child(1){left:34.147%;top:23.929%;width:65.853%;height:76.071%}
  .pair--tie picture:nth-child(2){left:0%;top:0%;width:73.478%;height:76.033%}
  .pair--itajime{--w:266.754px;aspect-ratio:266.754/193.999}
  .pair--itajime picture:nth-child(1){left:23.287%;top:25.103%;width:76.713%;height:74.897%}
  .pair--itajime picture:nth-child(2){left:0%;top:0%;width:63.163%;height:74.844%}
  .pair--spray{--w:257.29px;aspect-ratio:257.29/205.005}
  .pair--spray picture:nth-child(1){left:0%;top:0%;width:66.698%;height:75.939%}
  .pair--spray picture:nth-child(2){left:31.303%;top:24.102%;width:68.697%;height:75.898%}
  .pair--brushed{--w:265px;aspect-ratio:265/212.004}
  .pair--brushed picture:nth-child(1){left:0%;top:0%;width:63.546%;height:78.216%}
  .pair--brushed picture:nth-child(2){left:30.894%;top:21.797%;width:69.106%;height:78.203%}
}

/* ---------- dyeing modal ---------- */
.card--modal { cursor: pointer; transition: box-shadow .2s; }
.card--modal:hover { box-shadow: 4px 4px 8px rgba(0, 0, 0, .5); }
.card--modal:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
body.is-modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .7); overflow-y: auto; display: flex; padding: 56px 0; }
.modal[hidden] { display: none; }
.modal__inner { position: relative; width: min(1262px, 100%); margin: auto; padding: 0 112px; }
.modal__panel { display: flex; align-items: center; justify-content: center; gap: 66px; background: #fff; border: 1px solid #000; border-radius: 20px; padding: 53px 68px; font-weight: 300; line-height: 40px; }
.modal__panel[hidden] { display: none; }
.modal__text { flex: 1 1 497px; max-width: 497px; display: flex; flex-direction: column; gap: 40px; }
.modal__text:only-child { flex-basis: 939px; max-width: 939px; }
.modal__title { position: relative; font-size: 16px; font-weight: 300; line-height: 34px; padding-bottom: 14px; }
.modal__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; border-top: 1px solid #000; }
.modal__text ul, .modal__text ol { margin-top: -20px; margin-bottom: -20px; padding-left: 24px; }
.modal__text--combo { gap: 21px; }
.modal__prose { display: flex; flex-direction: column; gap: 40px; font-size: 16px; line-height: 40px; }
.modal__prose > p { margin: 0; }
.modal__prose > ul, .modal__prose > ol { margin: 0; padding-left: 24px; list-style: disc; }
.modal__media { flex: none; width: 375px; display: flex; flex-direction: column; gap: 22px; }
.modal__media img { display: block; width: 100%; height: auto; }
.modal__cap { text-align: center; margin-bottom: -4px; }
.modal__media--frost { gap: 0; }
.modal__media--frost .modal__cap { margin-bottom: 4px; }
.modal__frost-pics { display: flex; flex-direction: column; gap: 22px; }
.modal__pic--frost img { display: block; width: 100%; height: auto; aspect-ratio: 375 / 220; object-fit: cover; }
.modal__panel--stack { flex-direction: column; align-items: flex-start; gap: 66px; }
.modal__panel--stack .modal__text { flex: none; max-width: 497px; }
.modal__panel--stack .modal__text--wide { max-width: none; width: 100%; }
.modal__panel--stack .modal__text--wide ~ .modal__media-row { max-width: none; }
.modal__text--wide { flex: none; max-width: none; width: 100%; align-self: stretch; }
.modal__body { margin: 0; font-size: 16px; line-height: 40px; }
.modal__media-row { display: flex; justify-content: center; align-self: stretch; gap: 80px; width: 100%; max-width: 939px; }
.modal__media-row img { flex: 1 1 0; min-width: 0; max-width: 378px; width: 100%; height: auto; object-fit: cover; display: block; }
.modal__media-row--mist { align-items: flex-start; }
.modal__media-row--mist .modal__pic--mist-1 { flex: none; width: 378px; max-width: 47.5%; }
.modal__media-row--mist .modal__pic--mist-2 { flex: none; width: 375px; max-width: 47%; }
.modal__pic--mist-1 img,
.modal__pic--mist-2 img { flex: none; max-width: none; width: 100%; height: auto; object-fit: unset; display: block; vertical-align: top; }
.modal__cap--row { align-self: stretch; text-align: center; margin-bottom: -46px; }
.modal__media-row--cols { align-items: flex-start; }
.modal__media-col { flex: 1 1 0; min-width: 0; max-width: 378px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.modal__media-col img { width: 100%; height: auto; object-fit: cover; display: block; }
.modal__close { position: absolute; top: -48px; right: 112px; display: flex; align-items: center; gap: 11px; background: none; border: 0; color: #fff; font: 400 24px/40px "Open Sans", sans-serif; cursor: pointer; }
.modal__nav { position: absolute; top: 50%; width: 112px; height: 112px; margin-top: -56px; padding: 0; background: #fff; border: 0; border-radius: 50%; cursor: pointer; }
.modal__nav svg { display: block; width: 100%; height: 100%; fill: none; stroke: #000; stroke-width: 1; }
.modal__nav--prev { left: 0; }
.modal__nav--next { right: 0; }
.modal--single .modal__nav { display: none; }
.modal__close:focus-visible, .modal__nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1100px) and (min-width: 768px) {
  .modal__inner { padding: 0 56px; }
  .modal__close { right: 56px; }
  .modal__nav { width: 64px; height: 64px; margin-top: -32px; }
  .modal__panel { gap: 32px; padding: 40px; }
  .modal__media { width: 300px; }
}
@media (max-width: 767px) {
  .modal { padding: 56px 13px 24px; }
  .modal__inner { padding: 0; }
  .modal__close { right: 0; font-size: 18px; top: -44px; }
  .modal__panel { flex-direction: column; align-items: stretch; gap: 24px; padding: 32px 20px 80px; line-height: 32px; }
  .modal__text, .modal__text:only-child { flex-basis: auto; max-width: none; gap: 24px; }
  .modal__media { width: 100%; }
  .modal__panel--stack { gap: 24px; }
  .modal__panel--stack .modal__text { max-width: none; }
  .modal__media-row { flex-direction: column; align-items: stretch; gap: 24px; max-width: none; }
  .modal__media-row img { max-width: none; }
  .modal__media-row--cols { flex-direction: column; align-items: stretch; }
  .modal__media-col { max-width: none; }
  .modal__cap--row { margin-bottom: -20px; }
  .modal__media-row--mist { align-items: center; gap: 13px; }
  .modal__media-row--mist .modal__pic--mist-1,
  .modal__media-row--mist .modal__pic--mist-2 { width: 308px; max-width: 100%; align-self: center; }
  .modal__pic--mist-1 img,
  .modal__pic--mist-2 img { width: 100%; height: auto; object-fit: unset; }
  .modal__nav { top: auto; bottom: 16px; margin-top: 0; width: 48px; height: 48px; }
  .modal__nav--prev { left: 20px; }
  .modal__nav--next { right: 20px; }
}

/* ---------- thanks page (Figma 581:1495) ---------- */
.thanks-hero { height: 347px; }
.thanks-hero__bg { object-position: 50% 50%; }
.thanks-hero .header__contact { position: absolute; right: var(--pad); top: 32px; }
.thanks-hero__title {
  position: absolute;
  z-index: 1;
  left: var(--pad);
  top: 174px;
  right: auto;
  max-width: calc(100% - 2 * var(--pad));
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
}
.thanks-main { padding: 180px 0 80px; background: #fff; }
.thanks-main__inner {
  display: flex;
  align-items: flex-start;
  gap: 166px;
  width: calc(100% - 2 * var(--pad));
  max-width: 1200px;
  margin-inline: auto;
}
.thanks-main__text { flex: 1 1 567px; max-width: 567px; font-size: 16px; line-height: 34px; font-weight: 300; }
.thanks-main__text p + p { margin-top: 40px; }
.thanks-main__photo { flex: none; width: min(467px, 100%); margin: 0; }
.thanks-main__photo img { width: 100%; height: auto; aspect-ratio: 467 / 351; object-fit: cover; }
.thanks-main__top { display: flex; justify-content: center; margin-top: 180px; }
@media (max-width: 767px) {
  .thanks-hero { height: clamp(280px, 75vw, 347px); }
  .thanks-hero__title { top: 120px; font-size: clamp(28px, 8vw, 46px); line-height: 1.2; }
  .thanks-hero .header__contact { top: auto; bottom: 16px; right: 13px; }
  .thanks-main { padding: 80px 0 60px; }
  .thanks-main__inner { flex-direction: column; gap: 40px; }
  .thanks-main__text, .thanks-main__photo { flex-basis: auto; max-width: none; width: 100%; }
  .thanks-main__top { margin-top: 80px; }
}
