@charset "UTF-8";

:root {
  --nh-blue: #0847ff;
  --nh-blue-dark: #0034c8;
  --nh-blue-deep: #002f86;
  --nh-blue-mid: #0099df;
  --nh-blue-light: #e9f7ff;
  --nh-blue-pale: #f4f9ff;
  --nh-line: #8aa5bb;
  --nh-text: #222;
  --nh-muted: #666;
  --page-width: 1120px;
  --content-width: 1040px;
  --font-ja: "BIZ UDPGothic", "Yu Gothic", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 46%);
  color: var(--nh-text);
  font-family: var(--font-ja);
  font-size: 14px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .78; }
button { font-family: inherit; }

.nh-page {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 30px auto 0;
}

.nh-hero {
  display: grid;
  grid-template-columns: 1fr 190px;
  align-items: center;
  gap: 24px;
  padding: 0 24px 0 0;
  background: #0847ff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 57, 190, .18);
}

.nh-hero__title img {
  display: block;
  width: min(520px, 100%);
  max-width: none;
}

.nh-hero__logo { justify-self: end; }

.nh-hero__logo img {
  display: block;
  width: 200px;
  border-radius: 5px;
  box-shadow: 0 5px 13px rgba(0, 22, 80, .24);
}

.nh-main {
  max-width: var(--content-width);
  margin: 30px auto 0;
}

.nh-catch {
  max-width: var(--content-width);
  margin: 24px auto 0;
  padding: 24px 30px 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  border: 1px solid #d2e3f5;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 5px 18px rgba(0, 70, 130, .07);
}

.nh-catch__main {
  margin: 0 0 12px;
  color: #0052a4;
  font-size: 26px;
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: .03em;
}

.nh-catch__text {
  margin: 0;
  color: #333;
  font-size: 16px;
  line-height: 2;
  font-weight: 500;
  /*text-align: left;*/
}

.nh-project-note{
  max-width: 1100px;
  margin: 8px auto 10px;
  padding: 0 20px;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.6;
	text-align: center;
}

@media (max-width: 900px){

  .nh-project-note{
    font-size: 0.72rem;
  }

}

.nh-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
  margin: 0;
  padding: 10px 20px 0;
}

.nh-tab {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 13px 12px 11px;
  border: 1px solid #0065aa;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #00a9ef 0%, #0080cf 54%, #0068b7 100%);
  color: #fff;
  text-align: center;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.32),
    0 -2px 8px rgba(0, 67, 150, .10);
}

.nh-tab.is-active {
  min-height: 78px;
  transform: translateY(-18px);
  margin-bottom: -18px;
  z-index: 3;
  background: linear-gradient(180deg, #f7fdff 0%, #9ee6ff 30%, #00a3e8 62%, #006fc4 100%);
  border-color: #0070be;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 50, 120, .32);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.70),
    0 -8px 16px rgba(0, 87, 180, .18);
}

.nh-tab:hover { opacity: 1; filter: brightness(1.04); }

.nh-content {
  padding: 15px 30px 48px;
  background: #fff;
  border: 1px solid #c9d9e8;
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(0, 70, 130, .08);
}

.nh-lead {
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 2;
  font-weight: 500;
}

.nh-panel[hidden] { display: none; }

.nh-section { margin: 0 0 50px; }
.nh-panel .nh-section:last-child { margin-bottom: 54px; }
.nh-section:last-child { margin-bottom: 0; }

.nh-section-title {
  margin: 0 0 20px;
  padding: 0 0 10px 20px;
  border-bottom: 2px solid #84bae4;
  border-left: 6px solid #008bd5;
  color: #0052a4;
  font-size: 30px;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: .04em;
}

.nh-table-card {
  padding: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #edf8ff 100%);
  border: 1px solid #cbddea;
  border-radius: 16px;
}

.nh-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--nh-line);
  border-radius: 12px;
  background: #fff;
}

.nh-tournament {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.nh-tournament th,
.nh-tournament td {
  height: 48px;
  padding: 12px 8px;
  border: 1px solid var(--nh-line);
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  word-break: keep-all;
}

.nh-tournament th:first-child,
.nh-tournament td:first-child {
  width: 16%;
}
.nh-tournament th:not(:first-child),
.nh-tournament td:not(:first-child) {
  width: 21%;
}

.nh-tournament__head {
  background: #dff4f7;
  color: #183548;
  font-weight: 700 !important;
}

.nh-tournament__name {
  text-align: left !important;
  padding-left: 14px !important;
  background: #fff;
  font-weight: 700 !important;
}

.nh-kifu-link {
  color: #0047cc;
  font-weight: 700;
  text-decoration: none;
}

.nh-kifu-link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nh-table-note {
  margin: 12px 4px 0;
  color: var(--nh-muted);
  font-size: 13px;
  line-height: 1.8;
}

.nh-gallery { margin-top: 60px; }

.nh-gallery__lead {
  margin: -6px 0 18px;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
}

.nh-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 20px;
  background: #f4f9ff;
  border: 1px solid #d3e2ee;
  border-radius: 16px;
}

.nh-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 70, 130, .08);
}

.nh-gallery__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.nh-gallery__button:hover { opacity: .92; }

.nh-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.nh-gallery__placeholder {
  display: grid;
  min-height: 158px;
  place-items: center;
  border: 1px dashed #b9cfe0;
  color: #7890a2;
  font-size: 14px;
  font-weight: 700;
}

.nh-gallery__item figcaption {
  padding: 10px 12px 12px;
  text-align: center;
  color: #345;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.nh-footer-links {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 30px auto 12px;
  text-align: center;
}

.page-top,
.nh-home-link {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 500;
}

.page-top {
	text-align: right;
}

.page-top__mark,
.nh-home-link__mark {
  color: #e60012;
  font-size: 1.2em;
}

.site-footer {
  border-top: 2px solid #d8d4cd;
  padding: 10px 0 30px;
  background-image: url("/jpga/assets/img/common/footerbg.jpg");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: #f4efe4;
  color: #777;
  font-size: 13px;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 20px auto;
  text-align: center;
}

.privacy-link,
.copyright { margin: 0; }

.privacy-link { text-align: left; }

.copyright {
  margin-top: 8px;
  text-align: center;
}

.privacy-link a {
  color: #333;
  font-size: 15px;
  font-weight: 500;
}

.privacy-link__mark { color: #e60012; }

.trademark-note {
  margin: 20px 0;
  padding: 10px 14px;
  color: #777;
  background-color: #f7f5ef;
  font-size: 13px;
  line-height: 1.7;
  border: 1px solid #ccc;
  border-radius: 10px;
  text-align: center;
}

.nh-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.nh-modal.is-open { display: block; }

.nh-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
}

.nh-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, 92vw);
  max-height: 88vh;
}

.nh-modal__figure {
  margin: 0;
  padding: 20px 20px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(0,0,0,.28);
}

.nh-modal__image {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  background: #f5f5f5;
}

.nh-modal__caption {
  margin-top: 12px;
  text-align: center;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 700;
}

.nh-modal__close,
.nh-modal__nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.94);
  color: #0847ff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.20);
}

.nh-modal__close {
  top: -48px;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
}

.nh-modal__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 64px;
  border-radius: 12px;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
}

.nh-modal__nav--prev { left: -70px; }
.nh-modal__nav--next { right: -70px; }
.nh-modal__close:hover,
.nh-modal__nav:hover { opacity: 1; background: #fff; }

@media (max-width: 900px) {
  .nh-page { width: auto; margin: 18px 16px 0; }

  .nh-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 18px;
    border-radius: 14px;
  }

  .nh-hero__title img { width: 100%; margin: 0 auto; }
  .nh-hero__logo { justify-self: center; margin-top: 12px; }
  .nh-hero__logo img { width: 150px; border-radius: 5px; }

  .nh-main { max-width: none; margin-top: 22px; }

  .nh-catch {
    margin: 18px 0 0;
    padding: 20px 16px 22px;
    border-radius: 16px;
  }

  .nh-catch__main {
    font-size: 21px;
    line-height: 1.55;
  }

  .nh-catch__text {
    font-size: 15px;
    line-height: 1.9;
  }
  .nh-tabs { grid-template-columns: 1fr; gap: 6px; padding: 0; }

  .nh-tab,
  .nh-tab.is-active {
    min-height: 50px;
    margin: 0;
    transform: none;
    border: 1px solid #0065aa;
    border-radius: 12px;
    font-size: 18px;
  }

  .nh-tab.is-active {
    background: linear-gradient(180deg, #f7fdff 0%, #8ee2ff 38%, #0086d4 100%);
  }

  .nh-content { margin-top: 12px; padding: 22px 16px 34px; border-radius: 16px; }
  .nh-lead { font-size: 15px; line-height: 1.9; }
  .nh-section-title { font-size: 24px; }
  .nh-table-card { padding: 12px; border-radius: 14px; }
  .nh-tournament { min-width: 720px; }

  .nh-tournament th,
  .nh-tournament td { font-size: 13px; padding: 7px 6px; }

  .nh-gallery__grid { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .nh-gallery__button { cursor: default; }
  .nh-gallery__button:hover { opacity: 1; }

  .site-footer { background: url("/jpga/assets/img/common/footerbg.jpg") left center / auto 100% no-repeat; }
  .footer-inner { margin: 0 16px; }
  .privacy-link { text-align: left; }
  .trademark-note { margin-top: 10px; text-align: left; }

  .nh-modal__content { width: 92vw; }
  .nh-modal__figure { padding: 14px; border-radius: 16px; }
  .nh-modal__close { top: -44px; }
  .nh-modal__nav { width: 42px; height: 54px; font-size: 32px; }
  .nh-modal__nav--prev { left: 8px; }
  .nh-modal__nav--next { right: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .nh-page { margin-left: 12px; margin-right: 12px; }
  .nh-content { padding-left: 12px; padding-right: 12px; }
  .nh-section-title { font-size: 21px; }
  .nh-catch__main { font-size: 19px; }
  .nh-tab,
  .nh-tab.is-active { font-size: 16px; }
}




.nh-kifu-box{
  border-top: 0;
}

.nh-kifu-box__title{
  width: 70%;
  margin: 0 auto 5px;
  padding-top: 4px;
  border-top: 1px solid #d4e5f2;

  color: #0052a4;
  font-size: 12px;
  font-weight: 700;
}

.nh-kifu-box__links{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.nh-kifu-button{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
  min-width: 48px;
  padding: 3px 7px;
  border: 1px solid #9bc6e6;
  border-radius: 999px;
  background: #eef8ff;
  color: #0047cc;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.nh-kifu-button:hover{
  opacity: 1;
  background: #dff1ff;
  text-decoration: none;
}

.nh-kifu-button--disabled{
  background: #f2f2f2;
  border-color: #d5d5d5;
  color: #999;
  cursor: default;
  pointer-events: none;
}





.nh-aiforum-link{
  display: flex;
  justify-content: center;
  margin: 30px 0 26px;
}

.nh-aiforum-link .pairgosong-button{
  width: auto;
  max-width: 100%;
}

.pairgosong-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: auto;
  max-width: 100%;
  padding: 13px 18px;

  border: 2px solid #e7b8c1;
  border-radius: 999px;

  background: linear-gradient(180deg, #fff7f8 0%, #ffeef1 100%);

  color: #333;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.pairgosong-button:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: linear-gradient(180deg, #fff4f6 0%, #ffe5ea 100%);
  box-shadow: 0 8px 18px rgba(180, 80, 100, .14);
}

.pickup-title__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: #e60012;
  border-radius: 50%;
}


@media (max-width: 900px) {

.nh-aiforum-link{
  padding: 0 16px;
}

.nh-aiforum-link .pairgosong-button{
  width: 100%;
  max-width: 420px;
}


}


@media (max-width: 900px){

  .nh-kifu-box__links{
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }

  .nh-kifu-button--ai{
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
  }


}


