@font-face {
  font-family: Michroma;
  src: url("michroma.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.weds-world-page {
  padding-top: var(--header-height, 76px);
}

body.admin-bar .weds-world-page {
  padding-top: max(0px, calc(var(--header-height, 76px) - var(--wp-admin--admin-bar--height, 32px)));
}

.weds-world {
  --world-ink: #353535;
  --world-active: #3f3f3f;
  --world-grid: #bdbdbd;
  --world-accent: #ae1741;
  padding: clamp(42px, 5.5vw, 72px) clamp(16px, 5.8vw, 80px) 62px;
  color: var(--world-ink);
  background: linear-gradient(#fff8, #fff8), #f2f5f7 url("world-map.svg") center top / max(100%, 1080px) auto no-repeat;
}

.weds-world *,
.weds-world *::before,
.weds-world *::after {
  box-sizing: border-box;
}

.weds-world [hidden] {
  display: none !important;
}

.weds-world__inner {
  max-width: 1120px;
  margin-inline: auto;
}

.weds-world .weds-world__heading {
  position: relative;
  margin: 0 0 28px;
  padding: 0 0 14px;
  border-bottom: 2px solid #d6d6d6;
  color: var(--world-ink);
  font-family: Michroma, "Noto Sans JP", sans-serif !important;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: .35em;
  line-height: 1.65;
  text-align: center;
  text-transform: uppercase;
}

.weds-world__heading::after {
  content: "";
  position: absolute;
  inset-block-end: -2px;
  inset-inline-start: 35%;
  inline-size: 30%;
  block-size: 2px;
  background: #111;
}

.weds-world__directory {
  background: #fff;
  box-shadow: 0 2px 12px #20202038;
}

.weds-world__tabs {
  display: flex;
  background: #efefef;
}

.weds-world__tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  padding: .6rem .45rem;
  border: 0;
  background: transparent;
  color: var(--world-ink);
  font: inherit;
  font-size: clamp(12px, 1.35vw, 16px);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.weds-world__tab[aria-selected="true"] {
  background: var(--world-active);
  color: #fff;
}

.weds-world__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 50%;
  border-inline: 10px solid transparent;
  border-block-start: 10px solid var(--world-active);
  transform: translateX(-50%);
}

.weds-world__tab:hover:not([aria-selected="true"]) {
  background: #e3e3e3;
}

.weds-world a:focus-visible,
.weds-world button:focus-visible,
.weds-world [role="tabpanel"]:focus-visible {
  outline: 2px solid #0867a0;
  outline-offset: -2px;
}

.weds-world__region,
.weds-world__empty {
  padding: 26px clamp(16px, 2.4vw, 27px) 40px;
}

.weds-world__region + .weds-world__region {
  border-top: 1px solid #e1e1e1;
}

.weds-world__region-heading {
  margin: 0 0 1rem;
  font-size: 16px;
  font-weight: 700;
}

.weds-world__directory.is-ready .weds-world__region-heading {
  display: none;
}

.weds-world .weds-world__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.5;
}

.weds-world__col-company { width: 16%; }
.weds-world__col-status { width: 10%; }
.weds-world__col-address { width: 24%; }
.weds-world__col-phone { width: 14%; }
.weds-world__col-web { width: 15%; }
.weds-world__col-email { width: 21%; }

.weds-world__table th,
.weds-world__table td {
  padding: 15px clamp(8px, 1.15vw, 15px);
  border: 1px solid var(--world-grid);
  vertical-align: top;
  overflow-wrap: anywhere;
  text-align: left;
}

.weds-world__table thead th,
.weds-world__country th {
  border-color: #757575;
  background: #626262;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.weds-world__country th {
  padding-block: 10px;
  vertical-align: middle;
}

.weds-world__flag {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-inline-end: .4rem;
  vertical-align: middle;
}

.weds-world__company,
.weds-world__dealer td[data-label="Address"] {
  white-space: pre-line;
}

.weds-world__company {
  font-weight: 600;
}

.weds-world__dealer a {
  color: var(--world-accent);
  text-decoration: underline;
  text-underline-offset: .15em;
}

.weds-world__phone,
.weds-world__fax {
  display: block;
}

.weds-world .weds-world__phone {
  color: inherit;
}

.weds-world__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .weds-world {
    padding: 38px 14px 42px;
    background-size: max(125%, 800px) auto;
  }

  .weds-world .weds-world__heading {
    margin-block-end: 18px;
    font-size: clamp(15px, 4.2vw, 22px);
    letter-spacing: .14em;
  }

  .weds-world__tab {
    min-height: 48px;
  }

  .weds-world__region {
    padding: 16px 12px 12px;
  }

  .weds-world .weds-world__table,
  .weds-world__table tbody,
  .weds-world__country,
  .weds-world__country th {
    display: block;
  }

  .weds-world__table colgroup,
  .weds-world__table thead,
  .weds-world__dealer [data-empty] {
    display: none;
  }

  .weds-world__table tbody + tbody {
    margin-top: 1.25rem;
  }

  .weds-world__country th {
    border-radius: .2rem .2rem 0 0;
    text-align: left;
  }

  .weds-world__dealer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--world-grid);
    border-top: 0;
  }

  .weds-world__dealer th,
  .weds-world__dealer td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .weds-world__dealer th {
    color: #222;
    font-size: 16px;
    font-weight: 700;
  }

  .weds-world__dealer td::before {
    display: block;
    margin-bottom: .05rem;
    color: #535353;
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
  }
}
