/* Keep the header visible while preserving its space in the page. */
.ekomado-site .works-header {
  position: sticky;
  top: var(--ekomado-header-offset, 0px);
  z-index: 100;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.admin-bar {
  --ekomado-header-offset: 32px;
}

@media (max-width: 782px) {
  .admin-bar { --ekomado-header-offset: 46px; }
}

@media (max-width: 600px) {
  .admin-bar { --ekomado-header-offset: 0px; }
}

@media (max-width: 1199px) {
  .ekomado-site .works-header {
    max-height: calc(100dvh - var(--ekomado-header-offset, 0px));
    overflow-y: auto;
  }
}

@media (max-width: 767px) {
  .ekomado-site .works-header {
    max-height: calc(100dvh - var(--ekomado-header-offset, 0px) - 64px - env(safe-area-inset-bottom, 0px));
  }
}

/* WordPress content uses the original type, colors, widths and breakpoints. */
@media (min-width: 1200px) {
  .eco-footer__nav {
    grid-template-columns: 190.08px 142.08px 220.8px 209.28px;
  }
  .eco-footer__actions:not(:has(> .eco-footer__estimate:not([hidden]))) {
    width: 793.026px;
    justify-content: flex-end;
  }
}
[hidden] { display: none !important; }
.floating-actions {
  position: fixed;
  z-index: 40;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.floating-actions__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 52px;
  padding: 18px 8px;
  border-radius: 8px 0 0 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: -2px 2px 8px rgb(0 0 0 / 12%);
}
.floating-actions__link--contact { background: #00367b; }
.floating-actions__link--estimate { background: #ed6c00; }
.floating-actions__sp-break { display: none; }
.floating-actions__link > img {
  display: block;
  width: 23px;
  height: 20px;
  object-fit: contain;
}
.floating-actions__link--estimate > img { filter: brightness(0) invert(1); }
.floating-actions__link > span:not(.floating-actions__arrow) {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: .12em;
}
.floating-actions__arrow {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  color: #00367b;
  font: 700 16px/1 Arial, sans-serif;
}
.floating-actions__link--estimate .floating-actions__arrow { color: #ed6c00; }
.floating-actions__link:focus-visible { outline: 3px solid #00367b; outline-offset: 3px; }
@media (hover: hover) {
  .floating-actions__link:hover { opacity: .85; }
}
@media (max-width: 767px), (max-height: 650px) {
  .floating-actions { gap: 4px; }
  .floating-actions__link { width: 34px; padding: 10px 4px; gap: 6px; font-size: 11px; }
  .floating-actions__link > img { width: 18px; height: 15px; }
  .floating-actions__arrow { width: 13px; height: 13px; font-size: 13px; }
}
@media (max-width: 767px) {
  body.ekomado-site {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .floating-actions {
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
    box-shadow: 0 -2px 8px rgb(0 0 0 / 12%);
  }
  .floating-actions__link {
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: calc(64px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    justify-content: center;
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
    border-radius: 0;
    box-shadow: none;
    font-size: clamp(13px, 4vw, 15px);
    line-height: 1.4;
    text-align: center;
  }
  .floating-actions__link > span:not(.floating-actions__arrow) {
    writing-mode: horizontal-tb;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .floating-actions__sp-break { display: block; }
  .floating-actions__link > img,
  .floating-actions__arrow { flex-shrink: 0; }
}
.works-contact__icon { display: block; flex: none; width: 24.913px; height: auto; margin-right: 10px; }
.ekomado-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ekomado-form-notice { position: relative; max-width: 1000px; margin: 24px auto; padding: 16px; color: #00367b; border: 1px solid currentColor; }
.ekomado-empty { grid-column: 1 / -1; padding: 24px 0; color: #00367b; text-align: center; font-size: clamp(14px,19.2px,20px); }
.ekomado-generic { width: min(1100px,calc(100% - 48px)); min-height: 45vh; margin: 60px auto; }
.ekomado-page-heading { position: relative; padding: clamp(56px, 7vw, 120px) 24px 70px; border-block: 1px solid #e0e7e2; background: #f9f9f4; color: #00367b; }
.ekomado-page-heading h1 { max-width: 1100px; margin: 0 auto 36px; font-size: clamp(26px, 3vw, 48px); line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.ekomado-page-sprout { position: absolute; bottom: 0; left: 50%; width: clamp(80px, 7.24vw, 139px); height: auto; transform: translateX(-50%); }
.ekomado-page-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; max-width: 1100px; margin: 0 auto; font-size: 14px; line-height: 1.8; }
.ekomado-page-breadcrumb a:hover { text-decoration: underline; }
.ekomado-fallback .ekomado-entry-content > :first-child { margin-top: 0; }
.ekomado-fallback .ekomado-entry-content > :last-child { margin-bottom: 0; }
.ekomado-fallback .ekomado-entry-content :is(h2, h3, h4, h5, h6) { height: auto; margin: 2em 0 1em; color: #00367b; line-height: 1.6; }
.ekomado-fallback .ekomado-entry-content h2 { padding-bottom: 12px; border-bottom: 2px solid #00367b; font-size: clamp(22px, 2vw, 30px); }
.ekomado-fallback .ekomado-entry-content h3 { padding-left: 14px; border-left: 4px solid #ff7f00; font-size: clamp(19px, 1.6vw, 24px); }
.ekomado-fallback .ekomado-entry-content :is(p, ul, ol, figure, blockquote, table) { margin-top: 0; margin-bottom: 1.5em; }
.ekomado-fallback .ekomado-entry-content :is(ul, ol) { padding-left: 1.8em; }
.ekomado-fallback .ekomado-entry-content li + li { margin-top: .4em; }
.ekomado-fallback .ekomado-entry-content a:not(.wp-element-button) { color: #00367b; text-decoration: underline; text-underline-offset: .2em; }
.ekomado-fallback .ekomado-entry-content blockquote { padding: 20px 24px; border-left: 4px solid #e0e7e2; background: #f9f9f4; }
.ekomado-fallback .ekomado-entry-content table { width: 100%; border-collapse: collapse; }
.ekomado-fallback .ekomado-entry-content :is(th, td) { padding: 12px 16px; border: 1px solid #dce3e0; text-align: left; }
.ekomado-fallback .ekomado-entry-content th { background: #f9f9f4; }
.ekomado-fallback .ekomado-entry-content .wp-block-table { overflow-x: auto; }
.ekomado-page-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.ekomado-fallback .ekomado-generic-summary { min-height: 0; padding-bottom: 32px; border-bottom: 1px solid #e0e7e2; }
.ekomado-generic-pagination { width: min(1100px, calc(100% - 48px)); margin: 40px auto 60px; }
@media (max-width: 767px) {
  .ekomado-fallback .ekomado-generic { width: calc(100% - 40px); margin: 36px auto 48px; }
  .ekomado-page-heading { padding-inline: 20px; }
  .ekomado-page-breadcrumb { gap: 6px; font-size: 12px; }
  .ekomado-fallback .ekomado-entry-content :is(th, td) { padding: 10px; }
}
.ekomado-entry-content { font-size: clamp(16px,20.16px,21px); line-height: 2; overflow-wrap: anywhere; }
.ekomado-entry-content img, .ekomado-entry-content video, .ekomado-featured img { max-width: 100%; height: auto; }
.ekomado-entry-content iframe { max-width: 100%; }
.ekomado-entry-content figure { max-width: 100%; margin-left: 0; margin-right: 0; }
.ekomado-single { width: 1100px; height: auto; min-height: 576px; margin: 0 auto; padding: 102.5px 0 96px; }
.ekomado-single > h2, .ekomado-single > .works-detail__meta, .ekomado-single > .works-detail__image, .ekomado-single > .works-detail__facts, .ekomado-single > .works-detail__product, .ekomado-single > .column-detail-category, .ekomado-single > .column-detail-photo, .ekomado-single > .information-detail-meta, .ekomado-single > .information-detail-photo, .ekomado-single > .works-detail__back, .ekomado-single > .column-back, .ekomado-single > .information-back { position: relative; top: auto; left: auto; }
.ekomado-single > h2 { width: 100%; margin: 34.56px 0 53.76px; }
.ekomado-single > .works-detail__image, .ekomado-single > .column-detail-photo, .ekomado-single > .information-detail-photo { width: 100%; height: auto; margin: 38.4px 0; }
.ekomado-single > .works-detail__facts { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 38.4px 0; }
.ekomado-single .works-detail__facts > div { height: auto; min-width: 0; }
.ekomado-single .works-detail__facts dt { flex: none; }
.ekomado-single .works-detail__facts dd { white-space: normal; overflow-wrap: anywhere; }
.ekomado-single > .works-detail__back, .ekomado-single > .column-back, .ekomado-single > .information-back { margin: 57.6px auto 0; }
.ekomado-entry-content h2, .ekomado-entry-content h3 { position: static; width: auto; }
.ekomado-single .ekomado-entry-content { margin: 38.4px 0; }
.ekomado-featured { height: auto; background: transparent; }
.ekomado-featured img { display: block; margin: 0 auto 30px; }
.ekomado-archive.works-list { height: auto; min-height: 576px; padding-bottom: 57.6px; }
.ekomado-archive.column-list { height: auto; min-height: 576px; padding: 234.99px 0 57.6px; }
.ekomado-archive .column-rows { position: relative; top: auto; left: auto; margin: 0 auto; }
.ekomado-archive .column-row { height: auto; min-height: 204.67px; margin-bottom: 38.4px; }
.ekomado-archive .works-list-card, .ekomado-archive .works-list-card:nth-child(n+3) { height: auto; min-height: 527px; padding-bottom: 57.6px; }
.ekomado-archive .works-list-card p { font-size: clamp(14px,17px,18px); line-height: 1.6; }
.ekomado-archive .works-list-card__image img { object-fit: cover; }
.ekomado-archive.information-list { height: auto; min-height: 576px; padding: 289px 0 57.6px; }
.ekomado-information-rows { width: 1100px; margin: 0 auto; }
.ekomado-archive .information-list-row { position: relative; top: auto; left: auto; width: 100%; margin-bottom: 38.4px; }
.ekomado-archive .information-list-row > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(16px, 24px, 24px);
  align-items: center;
}
.ekomado-archive .information-list-meta,
.ekomado-archive .information-list-row h2 {
  grid-column: 1;
  min-width: 0;
}
.ekomado-archive .information-list-row h2 { overflow-wrap: anywhere; }
.ekomado-archive .information-list-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--blue);
  font: 400 28px/1 Arial, sans-serif;
}
.information-tabs a { position: relative; display: flex; align-items: center; justify-content: center; width: 313px; height: 80px; border-radius: 10px; background: #f7f9f9; color: #6a7373; font-size: 24px; font-weight: 700; }
.information-tabs a.information-tab-active { color: #fff; background: #00367b; }
.ekomado-pagination a { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; min-width: 44px; min-height: 44px; border-radius: 50%; color: #00367b; background: #f7f9f9; font-size: max(16px,24px); font-weight: 700; }
.ekomado-pagination a.works-page-current { color: #fff; background: #00367b; }
.ekomado-pagination .works-page-arrow { font-size: 30px; }
.works-card > a { display: block; color: inherit; }
@media(max-width:1199px) {
 .works-contact__icon { width: 20px; margin-right: 8px; }
 .ekomado-archive.column-list, .ekomado-archive.information-list { padding: 40px 24px 48px; }
 .ekomado-archive .column-rows, .ekomado-information-rows { width: 100%; }
 .ekomado-archive .information-list-row { margin-bottom: 24px; }
 .information-tabs a { width: min(26vw,260px); height: 52px; font-size: 18px; border-radius: 8px; }
 .ekomado-archive .information-tabs { position: static; margin: 0 auto 40px; justify-content: center; }
 .ekomado-single { width: calc(100% - 48px); max-width: 960px; min-height: 300px; padding: 40px 0 48px; }
 .ekomado-single > h2 { margin: 24px 0; }
 .ekomado-single > .works-detail__facts { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .ekomado-pagination a { width: 44px; height: 44px; }
}

/* Dynamic cards keep the same image frame even when titles differ in length. */
.works-card__image img { object-fit: cover; }
@media (min-width: 1200px) {
 .information__row p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
 .works-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
}

/* Category menus share the reference size-picker's white/blue open state. */
.works-filter:has([data-eco-picker]) { z-index: 6; }
.works-select[data-eco-picker], .eco-select-picker { position: relative; z-index: 1; }
[data-eco-picker]:has(.eco-select-list:not([hidden])) { z-index: 20; }
.eco-select-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 60px 0 22px;
  border: 2px solid #00367b;
  border-radius: 100px;
  background: #fff;
  color: #373a38;
  box-shadow: 5px 5px 0 #d4e1f1;
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eco-select-list {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: min(360px, 50vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  border: 2px solid #00367b;
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: #fff;
  box-shadow: 4px 4px 0 #d4e1f1;
  color: #373a38;
  font-size: clamp(16px, 17px, 20px);
  font-weight: 400;
}
.eco-select-list [role="option"] {
  min-height: 48px;
  padding: 13px 20px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.eco-select-list [role="option"][aria-selected="true"],
.eco-select-list [role="option"][data-active="true"] {
  background: #00367b;
  color: #fff;
  font-weight: 700;
}
.eco-select-trigger:focus-visible { outline: 2px solid #00367b; outline-offset: 4px; }
.eco-select-list [role="option"]:focus { outline: 2px solid #fff; outline-offset: -4px; }
@media (max-width: 1199px) {
  .eco-select-trigger {
    padding: 0 44px 0 16px;
    border-width: 2px;
    border-radius: 40px;
    font-size: 16px;
    box-shadow: 3px 3px 0 #d4e1f1;
  }
}

/* Keep each form control in its original page layout. */
.eco-select-picker::after {
  content: ""; position: absolute; pointer-events: none;
  right: 20px; top: calc(50% - 6px); width: 8px; height: 8px;
  border-bottom: 2px solid #00367b; border-right: 2px solid #00367b;
  transform: rotate(45deg);
}
.simulation-select.eco-select-picker { position: absolute; padding: 0; border: 0; background: transparent; }
.contact-field .eco-select-picker { width: 100%; height: 79px; }
.contact-field .eco-select-trigger { font-size: 18px; padding-left: 32px; }
.eco-select-list [aria-disabled="true"] { opacity: .5; cursor: default; }
@media (max-width: 1199px) {
 .simulation-select.eco-select-picker { position: relative; left: auto; top: auto; height: 52px; }
 .contact-field .eco-select-picker { height: 52px; }
 .contact-field .eco-select-trigger { font-size: 16px; padding-left: 16px; }
}
/* Utility links move into the navigation on smartphones. */
.works-header-main .compact-navigation > .navigation-sp-link {
  display: none;
}

@media (max-width: 767px) {
  .works-header .works-utility {
    display: none;
  }

  .works-header-main .compact-navigation > .navigation-sp-link {
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    min-height: 56px;
    padding: 14px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
  }

  .works-header-main .compact-navigation > .navigation-sp-link--contact {
    margin-top: 16px;
    background: #00367b;
  }

  .works-header-main .compact-navigation > .navigation-sp-link--estimate {
    background: #ed6c00;
  }

  .navigation-sp-link > span[aria-hidden] {
    font-size: 26px;
    line-height: 1;
  }

  .works-header-main .compact-navigation > .navigation-sp-link--tel {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
    border: 1px solid #d4e1f1;
    background: #f1f6fc;
    color: #00367b;
    text-align: center;
  }

  .navigation-sp-tel strong {
    font-size: 24px;
    letter-spacing: .02em;
  }

  .navigation-sp-link--tel small {
    font-size: 11px;
    font-weight: 400;
  }

  .works-header-main .compact-navigation > .navigation-sp-link:focus-visible {
    outline: 3px solid #329b7d;
    outline-offset: 3px;
  }

  .works-header-main .compact-navigation > .navigation-sp-link::after {
    content: none;
  }
}

@media (max-width: 767px) and (hover: hover) and (pointer: fine) {
  .works-header-main .compact-navigation > :is(.navigation-sp-link--contact, .navigation-sp-link--estimate) {
    transition: opacity .3s ease;
  }

  .works-header-main .compact-navigation > :is(.navigation-sp-link--contact, .navigation-sp-link--estimate):hover {
    color: #fff;
    opacity: .85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .works-header-main .compact-navigation > :is(.navigation-sp-link--contact, .navigation-sp-link--estimate) {
    transition-duration: .01ms;
  }
}


/* 全ページ共通: 相談バナーとフッター */
.eco-footer--renewed {
  container-type: inline-size;
  background: #fff;
}
.eco-footer--renewed .eco-footer__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-height: 320px;
  margin: 60px 60px 0;
  padding: 60px 115px;
  border-radius: 30px;
  background: linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url('../assets/images/window-concerns-banner.png') center / cover no-repeat;
  color: #fff;
}
.eco-footer__banner-copy { flex: 0 1 auto; }
.eco-footer__banner-badge {
  width: fit-content;
  margin: 0 0 20px;
  padding: 8px 30px;
  border-radius: 50px;
  background: var(--blue);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
  white-space: nowrap;
}
.eco-footer__banner-copy h2 {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: nowrap;
}
.eco-footer--renewed .eco-footer__actions {
  position: static;
  display: flex;
  flex: 0 0 auto;
  gap: 32.59px;
}
.eco-footer--renewed .eco-footer__actions > a {
  width: 380.218px;
  height: 108.634px;
  gap: 24px;
  outline-width: 10px;
}
.eco-footer--renewed .eco-footer__inner { container-type: inline-size; max-width: 1920px; height: auto; aspect-ratio: 1920 / 407; }
.eco-footer--renewed .eco-footer__company { top: 80px; }
.eco-footer--renewed .eco-footer__logo { width: auto; height: 100px; }
.eco-footer--renewed .eco-footer__nav {
  top: 80px;
  grid-template-columns: 190.08px 142.08px 220.8px 209.28px;
}
.eco-footer--renewed .eco-footer__area { border-radius: 50px; }
@media (max-width: 1199px) {
  .eco-footer--renewed .eco-footer__banner {
    flex-direction: column;
    gap: 28px;
    margin: 32px 24px 0;
    padding: 40px 24px;
    border-radius: 24px;
    text-align: center;
  }
  .eco-footer__banner-badge {
    margin: 0 auto 16px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    white-space: normal;
  }
  .eco-footer__banner-copy h2 { font-size: 28px; white-space: normal; }
  .eco-footer--renewed .eco-footer__actions { gap: 24px; width: 100%; justify-content: center; }
  .eco-footer--renewed .eco-footer__actions > a {
    width: min(42%, 360px);
    height: auto;
    gap: 14px;
    outline-width: 5px;
  }
  .eco-footer--renewed .eco-footer__inner { aspect-ratio: auto; grid-template-columns: 1fr 1.3fr; }
  .eco-footer--renewed .eco-footer__company { grid-row: auto; }
  .eco-footer--renewed .eco-footer__logo { width: min(100%, 340px); height: auto; }
  .eco-footer--renewed .eco-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; font-size: 14px; }
}
@media (max-width: 767px) {
  .eco-footer--renewed .eco-footer__banner { margin: 24px 16px 0; padding: 32px 20px; border-radius: 20px; }
  .eco-footer__banner-badge { font-size: 12px; }
  .eco-footer__banner-copy h2 { font-size: 23px; }
  .eco-footer--renewed .eco-footer__actions { flex-direction: column; align-items: center; gap: 24px; }
  .eco-footer--renewed .eco-footer__actions > a { width: 100%; max-width: 360px; }
  .eco-footer--renewed .eco-footer__inner { grid-template-columns: minmax(0, 1fr); padding: 40px 24px 64px; }
}


.ekomado-entry-content{
  table{
    border-collapse: collapse;
    th,td{
      border: 1px solid var(--blue);
      padding: 10px;
    }
  }
  a{
    text-decoration: underline;
  }
  &.--works img{
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}
.wp-block-image .aligncenter{
  width: 100%;
  text-align: center;
}