/* 木門：門款、飾面、五金、選配與樣本裁切。 */
.wood-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e9e5db;
  min-height: 650px;
}
.wood-hero-copy {
  padding: 85px 5vw 80px 8vw;
  align-self: center;
}
.wood-hero h1 {
  font-weight: 400;
  font-size: clamp(2.5rem, 4.2vw, 4.5rem);
  line-height: 1.2;
  margin: 25px 0;
  letter-spacing: -0.04em;
}
.wood-hero-copy > p:not(.eyebrow) {
  color: #55574e;
  line-height: 1.9;
  margin: 25px 0 35px;
}
.wood-hero-photo {
  margin: 0;
  position: relative;
  min-height: 600px;
}
.wood-hero-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.wood-hero-photo figcaption {
  position: absolute;
  bottom: 20px;
  left: 24px;
  background: #fbfaf7ed;
  padding: 7px 11px;
  font-size: 0.65rem;
  color: #55574e;
}
.wood-catalog {
  padding: 90px 8vw;
}
.wood-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 30px;
}
.wood-section-title h2,
.wood-options-intro h2,
.wood-selection h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1.35;
}
.wood-search {
  min-width: 260px;
}
.wood-search,
.option-tools label,
.wood-selection-fields label {
  display: grid;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}
.wood-search input,
.option-tools input,
.option-tools select,
.wood-selection select {
  border: 0;
  border-bottom: 1px solid #aeaa9e;
  background: transparent;
  border-radius: 0;
  padding: 12px 0;
  font: inherit;
  color: var(--ink);
  width: 100%;
}
.wood-filter {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.wood-filter button {
  border: 0;
  background: transparent;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding: 12px 0;
  color: var(--muted);
  cursor: pointer;
}
.wood-filter button[aria-pressed='true'] {
  color: var(--ink);
  border-color: var(--accent);
}
.wood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 45px 26px;
}
.wood-card {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.wood-card-photo {
  height: 360px;
  background: #fff;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wood-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.wood-card:hover .wood-card-photo img {
  transform: translateY(-5px);
}
.wood-card p {
  font-size: 0.73rem;
  color: var(--accent);
  margin: 18px 0 7px;
}
.wood-card h3 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.wood-card h3 span {
  float: right;
}
.wood-options-intro {
  padding: 85px 8vw;
  background: #e6e0d4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
}
.wood-options-intro p:not(.eyebrow) {
  max-width: 360px;
  color: var(--muted);
  margin: 25px 0;
}
.wood-sample-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
.wood-sample-pair img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}
.wood-options-heading {
  padding: 80px 8vw 65px;
  background: #e9e5db;
}
.wood-options-heading h1 {
  font-size: clamp(2.3rem, 4.5vw, 4.6rem);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 35px 0 25px;
}
.wood-options-heading > p:last-of-type {
  max-width: 650px;
  font-size: 0.95rem;
  color: var(--muted);
}
.option-tools {
  display: flex;
  gap: 35px;
  align-items: end;
  margin: 30px 0;
}
.option-tools label:first-child {
  min-width: 280px;
}
.option-grid {
  display: grid;
  gap: 35px 25px;
}
.swatch-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.swatch-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  min-width: 0;
}
.swatch-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  margin-bottom: 15px;
}
.swatch-card > span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.swatch-card strong {
  font-weight: 400;
  font-size: 1rem;
}
.swatch-card small {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}
.hardware-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hardware-photo {
  height: 220px;
  background: #fff;
  padding: 15px;
}
.hardware-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wood-technical {
  grid-column: 1/-1;
  padding: 60px 0 0;
}
.wood-technical h2 {
  font-size: 2rem;
  font-weight: 400;
}
.wood-technical > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
}
.wood-technical > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.wood-technical button {
  border: 0;
  background: #fff;
  padding: 15px;
  cursor: zoom-in;
}
.wood-technical img {
  width: 100%;
  height: 210px;
  object-fit: contain;
}
.wood-technical span {
  display: block;
  margin-top: 10px;
  font-size: 0.75rem;
}
.review-item {
  padding: 0 0 50px;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.review-item h2 {
  font-weight: 400;
  overflow-wrap: anywhere;
}
.review-item > p:not(.eyebrow) {
  color: var(--muted);
}
.review-item > div {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
}
.review-item button {
  flex: 0 0 190px;
  width: 190px;
  border: 0;
  background: #fff;
  cursor: zoom-in;
  padding: 15px;
}
.review-item img {
  width: 100%;
  height: 240px;
  object-fit: contain;
}
.review-item button span {
  font-size: 0.75rem;
  display: block;
  margin-top: 10px;
}
.wood-selection {
  padding: 65px 8vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  border-top: 1px solid var(--line);
}
.wood-selection > div > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 420px;
}
.wood-selection-fields {
  display: grid;
  gap: 25px;
}
.selection-preview {
  display: flex;
  gap: 20px;
}
.selection-preview figure {
  margin: 0;
  width: 130px;
}
.selection-preview img {
  width: 130px;
  height: 100px;
  object-fit: contain;
  background: #fff;
}
.selection-preview figcaption {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 7px;
}
.empty-state {
  grid-column: 1/-1;
  padding: 50px 0;
  color: var(--muted);
}
#wood-viewer .text-link {
  display: block;
  margin: 20px auto 5px;
}
#wood-viewer > img {
  height: 65vh;
}
.wood-hero-copy .text-link {
  display: inline-block;
}
@media (max-width: 1050px) and (min-width: 801px) {
  .wood-card-photo {
    height: 300px;
  }
}
@media (max-width: 800px) {
  .wood-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}
@media (max-width: 800px) {
  .wood-hero-copy {
    padding: 65px 7vw;
  }
}
@media (max-width: 800px) {
  .wood-hero-photo {
    min-height: 420px;
  }
}
@media (max-width: 800px) {
  .wood-catalog {
    padding: 60px 7vw;
  }
}
@media (max-width: 800px) {
  .wood-section-title {
    display: block;
  }
}
@media (max-width: 800px) {
  .wood-search {
    margin-top: 25px;
    min-width: 0;
  }
}
@media (max-width: 800px) {
  .wood-filter {
    gap: 22px;
  }
}
@media (max-width: 800px) {
  .wood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }
}
@media (max-width: 800px) {
  .wood-card-photo {
    height: 280px;
    padding: 15px;
  }
}
@media (max-width: 800px) {
  .wood-card h3 {
    font-size: 0.85rem;
  }
}
@media (max-width: 800px) {
  .wood-options-intro {
    padding: 60px 7vw;
    grid-template-columns: 1fr;
    gap: 35px;
  }
}
@media (max-width: 800px) {
  .wood-options-heading {
    padding: 65px 7vw 45px;
  }
}
@media (max-width: 800px) {
  .option-tools label:first-child {
    flex: 1;
  }
}
@media (max-width: 800px) {
  .swatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 18px;
  }
}
@media (max-width: 800px) {
  .hardware-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }
}
@media (max-width: 800px) {
  .hardware-photo {
    height: 160px;
  }
}
@media (max-width: 800px) {
  .wood-selection {
    padding: 50px 7vw;
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
@media (max-width: 800px) {
  .wood-technical > div {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 450px) {
  .swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 450px) {
  .wood-card-photo {
    height: 240px;
    padding: 10px;
  }
}
@media (max-width: 450px) {
  .wood-hero-photo {
    min-height: 330px;
  }
}
@media (max-width: 450px) {
  .wood-card h3 span {
    display: none;
  }
}
@media (max-width: 450px) {
  .option-tabs {
    font-size: 0.85rem;
  }
}
@media (max-width: 450px) {
  .option-tools {
    flex-direction: column;
  }
}
@media (max-width: 450px) {
  .wood-sample-pair {
    gap: 15px;
  }
}
.wood-hardware-story {
  padding: 90px 8vw;
  background: #f0ede6;
  scroll-margin-top: 110px;
}
.hardware-story-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: end;
  margin-bottom: 50px;
}
.hardware-story-heading h2 {
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.04em;
  margin: 20px 0 0;
}
.hardware-story-heading > div > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 24px;
}
.hardware-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 32px;
}
.hardware-story-item {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.hardware-story-photo {
  height: 300px;
  background: #fff;
  overflow: hidden;
  padding: 28px;
}
.hardware-story-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.hardware-story-item:hover img {
  transform: scale(1.035);
}
.hardware-story-copy {
  padding: 22px 0 0;
  border-bottom: 1px solid var(--line);
}
.hardware-story-copy .eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}
.hardware-story-copy h3 {
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 12px 0;
}
.hardware-story-copy h3 span {
  float: right;
}
.hardware-story-copy > p:last-child {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 24px;
  max-width: 480px;
}
.hardware-configuration-note {
  margin: 30px 0 0;
  font-size: 0.76rem;
  line-height: 1.8;
  color: var(--muted);
}
.wood-hardware-story.is-compact .hardware-story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.is-compact .hardware-story-photo {
  height: 190px;
  padding: 18px;
}
.is-compact .hardware-story-copy h3 {
  font-size: 1rem;
}
.is-compact .hardware-story-copy > p:last-child {
  font-size: 0.8rem;
}
@media (max-width: 1000px) {
  .wood-hardware-story.is-compact .hardware-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .wood-hardware-story {
    padding: 60px 7vw;
    scroll-margin-top: 90px;
  }
}
@media (max-width: 600px) {
  .hardware-story-heading {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 35px;
  }
}
@media (max-width: 600px) {
  .hardware-story-heading br {
    display: none;
  }
}
@media (max-width: 600px) {
  .hardware-story-grid,
  .wood-hardware-story.is-compact .hardware-story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .hardware-story-photo,
  .is-compact .hardware-story-photo {
    height: 260px;
    padding: 24px;
  }
}
@media (max-width: 600px) {
  .hardware-story-copy h3 {
    font-size: 1.1rem;
  }
}
.wood-selection-fields > label[hidden] {
  display: none;
}
.swatch-card > .finish-mat {
  display: flex;
  width: 100%;
  aspect-ratio: 1;
  justify-content: center;
  align-items: center;
  background: #fff;
  margin: 0 0 15px;
}
.finish-crop {
  display: block;
  position: relative;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
}
.finish-crop img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  object-fit: initial !important;
}
.selection-preview .finish-mat {
  display: flex;
  width: 130px;
  height: 100px;
  justify-content: center;
  background: #fff;
}
#wood-viewer img.finish-zoom {
  clip-path: inset(0 0 14% 0);
}
#wood-viewer > .finish-mat {
  display: flex;
  height: 65vh;
  justify-content: center;
}
.wood-sample-pair > .finish-mat {
  display: flex;
  height: 220px;
  max-width: 100%;
  justify-content: center;
  background: #fff;
}
.wood-hero h1.otta-brand-lockup {
  width: min(440px, 100%);
  margin: 20px 0 32px;
  container-type: inline-size;
  line-height: 1.2;
  letter-spacing: normal;
}
.wood-hero .otta-brand-lockup .otta-logo {
  width: 100%;
  height: auto;
  margin: 0;
}
.wood-hero .otta-brand-lockup > span {
  display: block;
  margin: 4px 0 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 7.3cqi, 32px);
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}
.wood-card p,
.swatch-card > span,
.swatch-card small,
.selection-preview figcaption,
.wood-hero-photo figcaption,
.hardware-story-copy .eyebrow,
.hardware-configuration-note {
  font-size: 0.875rem;
  line-height: 1.65;
}
.wood-options-heading > p:last-of-type,
.hardware-story-copy > p:last-child,
.is-compact .hardware-story-copy > p:last-child {
  font-size: 1.0625rem;
  line-height: 1.85;
}
.wood-hero-copy .text-link {
  display: inline-flex;
}
.wood-card h3,
.swatch-card strong {
  font-size: 1rem;
  line-height: 1.65;
}
.hardware-story-copy h3,
.is-compact .hardware-story-copy h3 {
  font-size: 1.125rem;
}
.wood-search,
.option-tools label,
.wood-selection-fields label {
  font-size: 1rem;
  line-height: 1.65;
}
.wood-search input,
.option-tools input,
.option-tools select,
.wood-selection select {
  font-size: 1rem;
  min-height: 48px;
  min-width: 0;
  max-width: 100%;
  line-height: 1.6;
}
.wood-filter button {
  font-size: 1rem;
  min-height: 44px;
  line-height: 1.6;
}
.wood-technical span {
  font-size: 0.9375rem;
  line-height: 1.5;
}
.wood-section-title > *,
.wood-options-intro > *,
.wood-selection > * {
  min-width: 0;
}
@media (max-width: 800px) {
  .wood-options-heading > p:last-of-type,
  .hardware-story-copy > p:last-child,
  .is-compact .hardware-story-copy > p:last-child {
    font-size: 1rem;
    line-height: 1.85;
  }
}
@media (max-width: 800px) {
  .wood-card p,
  .swatch-card > span,
  .swatch-card small,
  .selection-preview figcaption {
    font-size: 0.875rem;
  }
}
@media (max-width: 800px) {
  .wood-card h3 {
    font-size: 1rem;
    line-height: 1.65;
  }
}
@media (max-width: 800px) {
  .wood-filter {
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px 20px;
  }
}
@media (max-width: 800px) {
  .wood-filter button {
    padding: 10px 0;
    font-size: 1rem;
  }
}
@media (max-width: 800px) {
  .option-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}
@media (max-width: 800px) {
  .option-tools label:first-child {
    min-width: 0;
  }
}
@media (max-width: 800px) {
  .swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }
}
@media (max-width: 800px) {
  .swatch-card {
    min-height: 44px;
  }
}
@media (max-width: 800px) {
  .wood-technical img {
    height: 230px;
  }
}
@media (max-width: 800px) {
  #wood-viewer > img {
    height: 65vh;
    height: 65svh;
  }
}
@media (max-width: 480px) {
  .wood-grid,
  .hardware-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .wood-card-photo {
    height: 380px;
  }
}
@media (max-width: 480px) {
  .hardware-photo {
    height: 220px;
  }
}
@media (max-width: 480px) {
  .wood-options-heading h1 {
    font-size: 2rem;
  }
}
html[lang='en-US'] .wood-filter {
  flex-wrap: wrap;
}
html[lang='en-US'] .wood-card h3 {
  line-height: 1.5;
}
html[lang='en-US'] .wood-options-heading h1 {
  letter-spacing: -0.03em;
}
@media (max-width: 800px) {
  html[lang='en-US'] .option-tabs {
    gap: 20px;
  }
}
