/*
 * LIXIL加盟店ブランド補足 — styles / ui-shell / home-lite の後に読み込む。
 * HTML側でLIXIL＋ERAロゴを屋号より先に配置する。CSSのorderは使わない。
 * ロゴ原本を加工せず、白地のクリアスペースを確保する。
 * 本部の保証・直営店・当店の受賞を示す装飾や文言は追加しない。
 */

/* 全12ページ共通：270pxの公式ロゴ＋204pxの屋号、既存84px内。 */
body.ui-focused header.ui-header .ui-header__brands {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  gap: 18px;
  min-width: 0;
}

body.ui-focused header.ui-header .ui-header__brands .lixil-logo {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 306px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  filter: none;
  transform: none;
  overflow: visible;
  isolation: isolate;
}

body.ui-focused header.ui-header .ui-header__brands a.brand {
  flex: 0 0 auto;
  width: 204px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* 対象のロゴだけに原本比率を指定。画像への縁・影・色・傾き・切抜きなし。 */
body.ui-focused header.ui-header .ui-header__brands .lixil-logo > img,
body.ui-focused .footer-brand .lixil-logo > img,
body.home-hub.ui-focused.ui-home main .lixil-assurance .lixil-logo > img,
body.ui-focused main .frame-content .frame-block.lixil-network .lixil-logo > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: 767 / 105;
  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  transform: none;
  clip-path: none;
  mask-image: none;
  opacity: 1;
}

body.ui-focused header.ui-header .ui-header__brands a.brand > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1086 / 362;
  object-fit: contain;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  transform: none;
  clip-path: none;
  mask-image: none;
}

/* フッターも公式ロゴの画像幅270px。周囲に白い余白を保つ。 */
body.ui-focused .footer-brand .lixil-logo {
  box-sizing: border-box;
  width: 306px;
  min-width: 0;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  filter: none;
  transform: none;
  overflow: visible;
  isolation: isolate;
}

/* HOME：追加ラベルだけを強調。既存の地域leadとhero配置は変更しない。 */
body.home-hub.ui-focused.ui-home main .ui-home-hero .hero__copy > p.area-pill.lixil-hero-label {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 4px 13px;
  border: 1px solid #f2bea2;
  border-left: 3px solid #e75400;
  border-radius: 6px;
  color: #893600;
  background: #fff1e8;
  font-family: var(--round, sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .015em;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* HOME：大型カードではなく、短い二列のブランド帯。 */
body.home-hub.ui-focused.ui-home main section.lixil-assurance {
  padding: 24px 0;
  color: var(--ink, #473d34);
  background: #fff6ef;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance > .page-width.lixil-assurance__inner {
  display: grid;
  grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
  align-items: center;
  gap: 14px 36px;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance__inner > div {
  min-width: 0;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance__brand {
  padding-left: 20px;
  border-left: 4px solid #e75400;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance__brand .lixil-kicker {
  margin: 0 0 8px;
  color: #893600;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance .lixil-logo {
  box-sizing: border-box;
  width: 306px;
  max-width: 100%;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  filter: none;
  transform: none;
  overflow: visible;
  isolation: isolate;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance__brand .lixil-assurance__member {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance__copy h2 {
  margin: 0 0 8px;
  color: var(--brown, #69452f);
  font-family: var(--round, sans-serif);
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: .01em;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance__copy > p {
  max-width: 60ch;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance__points {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance__points > li {
  position: static;
  min-width: 0;
  padding: 0;
  color: #69452f;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance__points > li::before {
  content: "";
  position: static;
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 2px 0;
  border-radius: 50%;
  background: #e75400;
  box-shadow: none;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance__inner > p.lixil-assurance__note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #f0d7c6;
  color: #655449;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* 新しい内部リンクのみ。既存LINE CTA・メニューの振舞いには触れない。 */
body.home-hub.ui-focused.ui-home main .lixil-assurance a.lixil-brand-link,
body.ui-focused main .reform-hero .hero__copy p.lixil-reform-cue a.lixil-brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 7px 0;
  color: #893600;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.home-hub.ui-focused.ui-home main .lixil-assurance a.lixil-brand-link:focus-visible,
body.ui-focused main .reform-hero p.lixil-reform-cue a.lixil-brand-link:focus-visible,
body.ui-focused main .frame-content .frame-block.lixil-network a:focus-visible {
  outline: 3px solid var(--blue, #3d7b90);
  outline-offset: 3px;
}

/* ABOUT：既存frame-block本文より限定的かつ高い詳細度で整える。 */
body.ui-focused main .frame-content section.frame-block.lixil-network {
  display: block;
  width: 100%;
  max-width: 960px;
  min-width: 0;
  color: var(--ink, #473d34);
  overflow-wrap: anywhere;
}

body.ui-focused main .frame-content .frame-block.lixil-network .frame-block__heading {
  margin: 0 0 20px;
}

body.ui-focused main .frame-content .frame-block.lixil-network .frame-block__heading > p.eyebrow {
  margin: 0 0 8px;
  color: #893600;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

body.ui-focused main .frame-content .frame-block.lixil-network .frame-block__heading > h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.55;
}

body.ui-focused main .frame-content .frame-block.lixil-network .lixil-network__identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  min-width: 0;
  margin: 0 0 18px;
  padding: 16px 20px;
  border-left: 4px solid #e75400;
  background: #fff6ef;
}

body.ui-focused main .frame-content .frame-block.lixil-network .lixil-network__identity .lixil-logo {
  box-sizing: border-box;
  flex: 0 1 306px;
  width: 306px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  filter: none;
  transform: none;
  overflow: visible;
  isolation: isolate;
}

body.ui-focused main .frame-content .frame-block.lixil-network p.lixil-network__shop {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--brown, #69452f);
  font-family: var(--round, sans-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}

body.ui-focused main .frame-content .frame-block.lixil-network > p {
  max-width: 65ch;
  font-size: 16px;
  line-height: 1.9;
}

body.ui-focused main .frame-content .frame-block.lixil-network .lixil-network__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}

body.ui-focused main .frame-content .frame-block.lixil-network .lixil-network__features > section {
  min-width: 0;
  padding: 14px 0 0;
  border-top: 2px solid #f1cbb6;
  background: transparent;
}

body.ui-focused main .frame-content .frame-block.lixil-network .lixil-network__features h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.7;
}

body.ui-focused main .frame-content .frame-block.lixil-network .lixil-network__features p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.9;
}

body.ui-focused main .frame-content .frame-block.lixil-network .lixil-network__features a {
  display: inline;
  color: #893600;
  font-size: 13px;
  line-height: 1.8;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

body.ui-focused main .frame-content .frame-block.lixil-network > p.lixil-network__scope {
  max-width: 65ch;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-left: 3px solid #e75400;
  color: #655449;
  background: #fff6ef;
  font-size: 14px;
  line-height: 1.85;
}

body.ui-focused main .frame-content .frame-block.lixil-network > p.lixil-network__note {
  margin: 0 0 16px;
  color: #655449;
  font-size: 14px;
  line-height: 1.85;
}

body.ui-focused main .frame-content .frame-block.lixil-network .article-sources#lixil-brand-sources {
  max-width: 65ch;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e8dfd1;
}

body.ui-focused main .frame-content .frame-block.lixil-network .article-sources#lixil-brand-sources h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.7;
}

body.ui-focused main .frame-content .frame-block.lixil-network .article-sources#lixil-brand-sources ul {
  margin: 0;
  padding-left: 1.4em;
}

body.ui-focused main .frame-content .frame-block.lixil-network .article-sources#lixil-brand-sources li {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.8;
}

body.ui-focused main .frame-content .frame-block.lixil-network .article-sources#lixil-brand-sources a {
  color: #893600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* REFORM：ブランド説明への短いリンクのみ。hero本体やCTAは変更しない。 */
body.ui-focused main .reform-hero.ui-primary-hero .hero__copy > p.lixil-reform-cue:not(.area-pill) {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

/* 901pxでも両ブランドは横並び。本文幅は変えず、ヘッダーだけ詰める。 */
@media (min-width: 901px) and (max-width: 1100px) {
  body.ui-focused header.ui-header .page-width.ui-header__inner {
    width: calc(100% - 32px);
    gap: 12px;
  }

  body.ui-focused header.ui-header .ui-header__brands {
    flex: 0 0 auto;
  }

  body.ui-focused header.ui-header .ui-header__actions {
    flex: 0 1 auto;
    gap: 8px;
    min-width: 116px;
  }

  body.ui-focused header.ui-header .line-button.ui-header__cta {
    flex: 0 1 auto;
    padding-inline: 12px;
    gap: 6px;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.ui-focused header.ui-header .ui-header__cta > span {
    min-width: 0;
  }

  body.ui-focused header.ui-header .ui-header__cta .icon {
    width: 18px;
    height: 18px;
  }
}

/* 900px以下：DOM順のままLIXIL→屋号。高さは約90〜94px。 */
@media (max-width: 900px) {
  body.ui-focused header.ui-header .page-width.ui-header__inner {
    gap: 8px;
    min-height: 90px;
    padding: 2px 0;
  }

  body.ui-focused header.ui-header .ui-header__brands {
    flex: 0 1 214px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    min-width: 0;
  }

  body.ui-focused header.ui-header .ui-header__brands .lixil-logo {
    flex: 0 0 auto;
    width: clamp(199px, 55vw, 214px);
    max-width: 100%;
    padding: 8px 12px;
  }

  body.ui-focused header.ui-header .ui-header__brands a.brand {
    flex: 0 0 auto;
    width: 140px;
    max-width: 100%;
  }

  body.ui-focused .footer-brand .lixil-logo {
    width: 268px;
    padding: 8px 12px;
  }

  body.home-hub.ui-focused.ui-home main .lixil-assurance > .page-width.lixil-assurance__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.home-hub.ui-focused.ui-home main .lixil-assurance__brand {
    padding-left: 16px;
  }

  body.ui-focused main .frame-content .frame-block.lixil-network .lixil-network__features {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-block: 20px;
  }
}

@media (max-width: 760px) {
  body.home-hub.ui-focused.ui-home main .ui-home-hero .hero__copy > p.area-pill.lixil-hero-label {
    margin-bottom: 8px;
    padding: 4px 11px;
    font-size: 14px;
  }

  body.home-hub.ui-focused.ui-home main section.lixil-assurance {
    padding-block: 20px;
  }

  body.home-hub.ui-focused.ui-home main .lixil-assurance .lixil-logo {
    width: 268px;
    padding: 8px 12px;
  }

  body.home-hub.ui-focused.ui-home main .lixil-assurance__copy h2 {
    font-size: 22px;
    line-height: 1.55;
  }

  body.home-hub.ui-focused.ui-home main .lixil-assurance__points {
    gap: 3px 14px;
  }

  body.ui-focused main .frame-content .frame-block.lixil-network .lixil-network__identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
  }

  body.ui-focused main .frame-content .frame-block.lixil-network .lixil-network__identity .lixil-logo {
    flex: 0 0 auto;
    width: 268px;
    padding: 8px 12px;
  }

  body.ui-focused main .frame-content .frame-block.lixil-network p.lixil-network__shop {
    flex: 0 0 auto;
    font-size: 16px;
  }
}

/* 280〜360px：操作領域94pxを確保し、ロゴは比率と白余白を保ち縮小。 */
@media (max-width: 360px) {
  body.ui-focused header.ui-header .page-width.ui-header__inner {
    width: calc(100% - 24px);
    gap: 8px;
  }

  body.ui-focused header.ui-header summary.ui-menu__trigger {
    min-width: 94px;
    padding-left: 12px;
    font-size: 12px;
  }
}

@media (hover: hover) and (pointer: fine) {
  body.home-hub.ui-focused.ui-home main .lixil-assurance a.lixil-brand-link:hover,
  body.ui-focused main .reform-hero p.lixil-reform-cue a.lixil-brand-link:hover,
  body.ui-focused main .frame-content .frame-block.lixil-network a:hover {
    color: #6c2b00;
    text-decoration-thickness: 2px;
  }
}
