/* ----------------------------------------------------------
General Settings
---------------------------------------------------------- */
.nwic-hq {
  background-color: var(--color-hq);
}
.nwic-kanto {
  background-color: var(--color-kanto);
}
.nwic-kansai {
  background-color: var(--color-kansai);
}
.nwic-kyusyu {
  background-color: var(--color-kyusyu);
}
/* ----------------------------------------------------------
Style for PCs
---------------------------------------------------------- */
@media screen and (min-width: 1025px) {
  /* News category */
  ul.nwcategory {
    width: 60%;
    height: auto;
    display: flex;
    justify-content: center;
    margin: 0 auto 40px;
  }
  ul.nwcategory li {
    flex: 1;
    height: auto;
    display: block;
    margin: 0 1%;
    font-size: clamp(14px, 1.25vw, 20px);
    font-weight: 400;
    line-height: 1.5em;
    text-align: center;
  }
  ul.nwcategory li a {
    width: 100%;
    height: auto;
    display: block;
    color: var(--color-666);
    text-decoration: none;
    border: 1px solid var(--color-ccc);
    padding: 0.2em;
    border-radius: 5px;
    transition: .4s all;
  }
  ul.nwcategory li a:hover {
    color: var(--color-white);
    background-color: var(--color-1st);
  }
  ul.nwcategory li.nw_selected {
    color: var(--color-white);
    background-color: var(--color-333);
    padding: 0;
    border-radius: 5px;
  }
  ul.nwcategory li.nw_selected span {
    width: 100%;
    height: auto;
    display: block;
    color: var(--color-white);
    text-decoration: none;
    border: 1px solid var(--color-ccc);
    padding: 0.2em;
    border-radius: 5px;
    transition: .4s all;
  }
  .nwcategory .nw_selected a {
    pointer-events: none;
    cursor: default;
    text-decoration: none; /* リンクっぽさを消す */
    color: #333; /* 好きな色に */
  }
  /* News list */
  table.newslist {
    width: 100%;
  }
  table.newslist th {
    width: 10em;
    padding: 1.5em 0.5em;
    font-size: clamp(14px, 1.25vw, 20px);
    font-weight: 400;
    line-height: 1.5em;
    color: var(--color-1st);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px dotted var(--color-ccc);
  }
  table.newslist td {
    width: auto;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 1.5em 0.5em;
    font-size: clamp(14px, 1.25vw, 20px);
    font-weight: 400;
    line-height: 1.5em;
    color: var(--color-1st);
    vertical-align: top;
    border-bottom: 1px dotted var(--color-ccc);
  }
  table.newslist td a {
    width: calc(100% - 5em);
    height: auto;
    display: inline-block;
    text-decoration: none;
    color: var(--color-black);
    padding: 0.1em 1em;
    order: 2;
  }
  table.newslist td a:hover {
    color: var(--color-1st);
  }
  table.newslist td span {
    width: 4.5em;
    height: auto;
    display: block;
    font-size: clamp(12px, 1.1vw, 16px);
    font-weight: 400;
    line-height: 1.5em;
    padding: 0.1em 1em;
    color: var(--color-white);
    text-align: center;
    border-radius: 3px;
    order: 1;
  }
}
/* ----------------------------------------------------------
Style for iPad Pro
---------------------------------------------------------- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  /* News category */
  ul.nwcategory {
    width: 60%;
    height: auto;
    display: flex;
    justify-content: center;
    margin: 0 auto 40px;
  }
  ul.nwcategory li {
    flex: 1;
    height: auto;
    display: block;
    margin: 0 1%;
    font-size: clamp(14px, 1.25vw, 20px);
    font-weight: 400;
    line-height: 1.5em;
    text-align: center;
  }
  ul.nwcategory li a {
    width: 100%;
    height: auto;
    display: block;
    color: var(--color-666);
    text-decoration: none;
    border: 1px solid var(--color-ccc);
    padding: 0.2em;
    border-radius: 5px;
    transition: .4s all;
  }
  ul.nwcategory li a:hover {
    color: var(--color-white);
    background-color: var(--color-1st);
  }
  ul.nwcategory li.nw_selected {
    color: var(--color-white);
    background-color: var(--color-333);
    padding: 0;
    border-radius: 5px;
  }
  ul.nwcategory li.nw_selected span {
    width: 100%;
    height: auto;
    display: block;
    color: var(--color-white);
    text-decoration: none;
    border: 1px solid var(--color-ccc);
    padding: 0.2em;
    border-radius: 5px;
    transition: .4s all;
  }
  /* News list */
  table.newslist {
    width: 100%;
  }
  table.newslist th {
    width: 10em;
    padding: 1.5em 0.5em;
    font-size: clamp(14px, 1.25vw, 20px);
    font-weight: 400;
    line-height: 1.5em;
    color: var(--color-1st);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px dotted var(--color-ccc);
  }
  table.newslist td {
    width: auto;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 1.5em 0.5em;
    font-size: clamp(14px, 1.25vw, 20px);
    font-weight: 400;
    line-height: 1.5em;
    color: var(--color-1st);
    vertical-align: top;
    border-bottom: 1px dotted var(--color-ccc);
  }
  table.newslist td a {
    width: calc(100% - 5em);
    height: auto;
    display: inline-block;
    text-decoration: none;
    color: var(--color-black);
    padding: 0.1em 1em;
    order: 2;
  }
  table.newslist td a:hover {
    color: var(--color-1st);
  }
  table.newslist td span {
    width: 4.5em;
    height: auto;
    display: block;
    font-size: clamp(12px, 1.1vw, 16px);
    font-weight: 400;
    line-height: 1.5em;
    padding: 0.1em 1em;
    color: var(--color-white);
    text-align: center;
    border-radius: 3px;
    order: 1;
  }
}
/* ----------------------------------------------------------
Style for Smartphone
---------------------------------------------------------- */
@media screen and (max-width: 768px) {
  /* News category */
  ul.nwcategory {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    margin: 0 auto 40px;
  }
  ul.nwcategory li {
    flex: 1;
    height: auto;
    display: block;
    margin: 0 1%;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5em;
    text-align: center;
  }
  ul.nwcategory li a {
    width: 100%;
    height: auto;
    display: block;
    color: var(--color-666);
    text-decoration: none;
    border: 1px solid var(--color-ccc);
    padding: 0.2em;
    border-radius: 5px;
    transition: .4s all;
  }
  ul.nwcategory li a:hover {
    color: var(--color-white);
    background-color: var(--color-1st);
  }
  ul.nwcategory li.nw_selected {
    color: var(--color-white);
    background-color: var(--color-333);
    padding: 0;
    border-radius: 5px;
  }
  ul.nwcategory li.nw_selected span {
    width: 100%;
    height: auto;
    display: block;
    color: var(--color-white);
    text-decoration: none;
    border: 1px solid var(--color-ccc);
    padding: 0.2em;
    border-radius: 5px;
    transition: .4s all;
  }
  /* News list */
  table.newslist {
    width: 100%;
  }
  table.newslist th {
    width: 100%;
    height: auto;
    display: block;
    padding: 1.5em 0 0 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--color-1st);
    text-align: left;
  }
  table.newslist td {
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-start;
    padding: 0.8em 0em 1.5em;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--color-1st);
    vertical-align: top;
    border-bottom: 1px dotted var(--color-ccc);
  }
  table.newslist td a {
    width: calc(100% - 5em);
    height: auto;
    display: inline-block;
    text-decoration: none;
    color: var(--color-black);
    padding: 0em 0em 0.1em 1em;
    order: 2;
  }
  table.newslist td a:hover {
    color: var(--color-1st);
  }
  table.newslist td span {
    width: 4.5em;
    height: auto;
    display: block;
    font-size: clamp(12px, 1.1vw, 16px);
    font-weight: 400;
    line-height: 1.5em;
    padding: 0.1em 1em;
    color: var(--color-white);
    text-align: center;
    border-radius: 3px;
    order: 1;
  }
}