:root {
  --keycolor01: #E8C963;
  --keycolor02: #705c21;
}

body {
  background-color: var(--color03);
}


/* ---------------- */
.headerTabs ul li:nth-of-type(1) a {
  background-color: #CEE4E5;
  color: #00888F;
}
.headerTabs ul li:nth-of-type(1) a:hover {
  background-color: #00888F;
}

/* ---------------- */
.headerTabs ul li:nth-of-type(2) a {
  background-color: #C3D3E5;
  color: #004B9D;
}
.headerTabs ul li:nth-of-type(2) a:hover {
  background-color: #004B9D;
}

/* ---------------- */
.headerTabs ul li:nth-of-type(3) a.current {
  background-color: #705c21;
}





/* FV
______________________________________ */
.fv {
  min-height: min(36vw, 450px);
}

.fvInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pageTitle {
  /* position: absolute; */
  /* z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; */
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--keycolor02);
  border-radius: 16px;
  /* width: fit-content; */
  width: 100%;
  height: fit-content;
  /* max-width: calc(100% - (4vw * 2)); */
  max-width: var(--innerwidth-middle);
  line-height: 1;
  padding: min(3vw, 2rem) 3rem;
}
.pageTitle img {
  width: 100%;
}
.currentData {
  position: absolute;
  bottom: 11%;
  width: 100%;
  font-size: min(2.5vw, 20px);
  line-height: 1;
  text-align: center;
}







/* SEARCH
________________________________________ */
  #search {
    position: relative;
    width: 100%;
    margin: 0 auto 6rem auto;
    max-width: var(--innerwidth-middle);
    background: var(--color01);
    padding: 3rem min(4vw, 3rem) 2rem min(4vw, 3rem);
    border-radius: 24px;
  }
  #search h2 {
    text-align: center;
    padding: 0;
    margin: auto auto 3rem auto;
    font-size: min(5vw, 32px);
    color: var(--keycolor02);
  }
  #search #searchBox {
    width: 100%;
    border: 3px solid var(--keycolor02);
    padding: 1rem 1.5rem;
    border-radius: 24px;
    font-size: min(4vw, 38px);
    background-color: var(--color08);
  }
  .searchBtn {
    opacity: 0;
  }

  #filters {
    display: flex;
    margin: auto auto 3rem auto;
    width: fit-content;
  }
  #filters label {
    border: 2px solid var(--keycolor02);
    color: var(--keycolor02);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5em 3em .5em 3em;
    cursor: pointer;
    font-size: min(3vw, 20px);
    font-weight: 700;
    line-height: 1;
    margin-left: -2px;
  }
  #filters label:first-of-type {
    border-radius: 5px 0 0 5px;
  }
  #filters label:last-of-type {
    border-radius: 0 5px 5px 0;
  }

  #filters label:has(input:checked) {
    color: var(--color05);
    background: var(--color01);
    border: 2px solid var(--color05);
    position: relative;
    z-index: 111;
  }
  #filters label input {
    display: none;
  }

  #filters label:has(select) {
    padding: 0;
  }
  #filters label select {
    background: transparent;
    color: var(--keycolor02);
    font-weight: 700;
    outline: none;
    border: none;
    appearance: none;
    cursor: pointer;
    font-size: min(3vw, 20px);
    padding: .55em 1.25em .55em 1.25em;
    text-align-last: center;
    line-height: 1;
  }

  /* RESULT
  _______________________________________________ */
  #result {
    position: relative;
    width: 100%;
    margin: 0 auto 3rem auto;
    max-width: var(--innerwidth-middle);
  }
  #result .item {
    margin-bottom: min(4vw, 3rem);
    border-radius: 24px;
    overflow: hidden;
  }

  #result .noResult {
    text-align: center;
    font-weight: 700;
    font-size: min(4vw, 1.5rem);
    color: var(--color05);
  }

  .parent .child:has(ul:empty) {
    display: none;
  }

  .companyMeta {
    display: grid;
    grid-template-columns: min(16%, 5rem) 1fr;
    column-gap: min(2vw, 1.75rem);
    background-color: var(--color01);
    padding: 2rem min(4vw, 3rem);
  }
  .companyMeta .badge {
    width: 100%;
    display: flex;
    align-items: center;
    row-gap: .5rem;
    flex-direction: column;
  }

  .companyMeta .badge [class^='badge-'] {
    color: var(--color01);
    font-size: min(3vw, 20px);
    line-height: 1;
    padding: .5em 1em;
    border-radius: 5px;
  }
  .companyMeta .badge .badge-electric {
    background-color: #6d7aae;
  }
  .companyMeta .badge .badge-gas {
    background-color: #76b3a1;
  }

  .companyMeta .company {
    color: var(--keycolor02);
    display: flex;
    flex-direction: column;
    row-gap: min(2vw, 1rem);
  }
  .companyMeta .company .region {
    font-size: min(4vw, 22px);
    font-weight: 700;
  }
  .companyMeta .company .companyName {
    font-size: min(4vw, 26px);
    font-weight: 700;
  }


  .companyInfo {
    display: flex;
    flex-direction: column;
    background-color: var(--color14);
    width: 100%;
  }
  .companyInfo .companyInfoBtns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: min(4vw, 2rem);
    padding: min(4vw, 2rem) min(4vw, 3rem);
  }
  .companyInfoBtns .btn {
    font-size: min(3.25vw, 1.125rem);
    line-height: 1;
    padding: min(3vw, 2em) 1em;
    background: var(--color08);
    color: var(--keycolor02);
    display: flex;
    align-items: center;
    gap: min(2vw, 1rem);
  }
  .companyInfoBtns .btn::before {
    content: '';
    display: block;

    background-size: contain;
    background-repeat: no-repeat;
  }
  .companyInfoBtns .corporateSite.btn::before {
    width: min(5vw, 2rem);
    height: min(5vw, 2rem);
    background-image: url(../img/globe.png);
  }
  .companyInfoBtns .supportRelated.btn::before {
    width: min(7vw, 2rem);
    height: min(7vw, 2.5rem);
    background-image: url(../img/ico-page03.svg);
  }

  .companyInfoBtns .btn::after {
    content: '\0025b6';
    font-size: 70%;
    position: absolute;
    right: 2em;
    color: #E3DABD;
  }
  @media (min-width: 920px) {
    .companyInfoBtns .btn a::after {
      right: 1em;
    }
  }


  .companyInfo .child {
    padding: 0 min(4vw, 3rem) 2rem min(4vw, 3rem);
    background: var(--color14);
  }
  .child.toggleItem .tglBtn {
    font-weight: 700;
    display: grid;
    grid-template-columns: 1fr 60px;
    align-items: center;
    cursor: pointer;
    color: var(--color01);
    margin-bottom: 0;
    transition: margin-bottom .75s ease;
  }
  .child.toggleItem.open .tglBtn {
    margin-bottom: 1rem;
  }
  .child.toggleItem .tglBtn p {
    font-size: min(4vw, 18px);
    line-height: 1;
    padding: .5em 1em;
    color: var(--keycolor02);
  }
  .child.toggleItem .tglBtn::after {
    content: '▼';
    color: var(--keycolor02);
    font-size: 16px;
    transition: all .75s ease;
    text-align: center;
  }
  .child.toggleItem.open .tglBtn::after {
    content: '▲';
  }

  .child.toggleItem ul {
    list-style: none;
    padding: 1em 1em 1em 1em;
    background-color: var(--color08);
    border-radius: 5px;
  }
  .child.toggleItem:not(.open) ul {
    /* 通常時 取次店表示は閉じておく */
    display: none;
    visibility: hidden;
  }

  .child.toggleItem ul li {
    border-bottom: 1px solid #ddd;
    line-height: 1;
    padding: 1em 1em 1em 1em;

    display: grid;
    grid-template-columns: unset;
    grid-template-rows: 1em 1fr;
    row-gap: 1rem;
  }
  .child.toggleItem ul li:hover {
    background-color: var(--color14);
  }
  @media (min-width: 920px) {
    .child.toggleItem ul li {
      grid-template-columns: 1fr 20em;
      grid-template-rows: unset;
      row-gap: 0;
    }
  }


  .child.toggleItem ul li p:nth-of-type(1) {
    color: var(--keycolor02);
    font-weight: 700;
    font-size: min(4.5vw, 18px);
  }
  .child.toggleItem ul li p:nth-of-type(2) {
    display: flex;
    flex-direction: column;
    gap: .5rem;
  }
  @media (min-width: 920px) {
    .child.toggleItem ul li p:nth-of-type(2) {
      justify-content: flex-end;
      flex-direction: row;
    }
    .child.toggleItem ul li p:nth-of-type(2) .supportRelated {
      margin-left: 1em;
    }
  }
  .child.toggleItem ul li p:nth-of-type(2) span a {
    color: var(--keycolor02);
  }


  #pager {
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-wrap: wrap;
  }
  #pager > * {
    border: 1px solid var(--keycolor02);
    display: inline-block;
    line-height: 1;
    padding: .5em .5em;
    color: var(--keycolor02);
  }
  #pager > [class^="pager-"] {
    border: none;
    font-weight: 700;
    line-height: .5;
    padding-bottom: .75em;
    font-size: 150%;
  }
  .pager-first {
    padding-right: .25em !important;
  }
  .pager-last {
    padding-left: .25em !important;
  }


  #pager > a:hover {
    color: var(--keycolor02);
    background: var(--color14);
  }
  #pager .current {
    background: var(--keycolor02);
    color: var(--color01);
  }
