@charset "UTF-8";

:root {
  --page: #eef2f5;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --brand: #405a73;
  --brand-dark: #293f54;
  --brand-light: #dce6ee;
  --text: #171b20;
  --muted: #4f5862;
  --line: #d8e0e7;
  --line-strong: #bdc9d3;
  --accent: #ef7a32;
  --accent-dark: #ca5a16;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(49, 67, 84, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  background: var(--page);
}

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--page);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  padding: 0;
  color: var(--brand-dark);
  font-size: 1.32rem;
  line-height: 1.35;
}

h3 {
  display: inline;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
}

.top {
  width: 100%;
  background: var(--brand-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 3px 14px rgba(40, 55, 69, 0.16);
}

.topbox {
  display: flex;
  width: min(100% - 32px, 1100px);
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.topbox .logo {
  flex: 0 1 220px;
  min-width: 0;
  line-height: 1;
}

.topbox .logo a,
.topbox .logo img {
  display: block;
}

.topbox .logo img {
  width: auto;
  max-width: 100%;
  max-height: 58px;
}

.topbox a {
  color: #fff;
  text-decoration: none;
}

.topbox .menu {
  flex: 0 0 auto;
  margin-left: 20px;
  text-align: right;
}

.topbox .menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.topbox .menu a:hover,
.topbox .menu a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.contents {
  display: flex;
  width: min(100% - 32px, 1100px);
  margin: 0 auto;
  padding: 18px 0 24px;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
}

.notice {
  flex: 0 0 100%;
  margin: 0;
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(49, 67, 84, 0.05);
}

.notice h1 {
  margin-bottom: 4px;
  font-size: 1.12rem;
}

.notice time {
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.rankbox {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex: 0 0 calc((100% - 32px) / 3);
  flex-direction: column;
  margin: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(49, 67, 84, 0.07);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.rankbox:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 26px rgba(49, 67, 84, 0.15);
  transform: translateY(-3px);
}

.site {
  min-height: 48px;
  padding: 11px 14px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 26px;
  background: var(--brand);
}

.rankbox:nth-of-type(2) .site,
.rankbox:nth-of-type(3) .site,
.rankbox:nth-of-type(4) .site {
  background: var(--brand-dark);
}

.site img {
  width: auto;
  max-height: 18px;
  margin-left: 3px;
  vertical-align: -3px;
}

.img {
  display: flex;
  min-height: 122px;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.img img {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.text {
  flex: 1;
  padding: 11px 13px 6px;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.5;
}

.text p {
  margin: 0 0 8px;
}

.text p:last-child {
  margin-bottom: 0;
}

.text span {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.45;
  vertical-align: 1px;
  white-space: nowrap;
  background: var(--brand-light);
  border: 1px solid #c3d2de;
  border-radius: 999px;
}

.text p:first-child span:not(:first-child) {
  margin-left: 11px;
}

.btn {
  width: auto;
  margin: 9px 13px 14px;
  padding: 9px 12px;
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(64, 90, 115, 0.08);
  transition: color 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease;
}

.btn::after {
  content: " >>";
  display: inline-block;
  margin-left: 4px;
  font-weight: 900;
  letter-spacing: -1px;
  transition: transform 0.16s ease;
}

.rankbox:hover .btn,
.btn:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.rankbox:hover .btn::after,
.btn:hover::after {
  transform: translateX(3px);
}

.rankbox:active .btn,
.btn:active {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.latest {
  flex: 0 0 100%;
  min-width: 0;
  margin: 4px 0 0;
}

.latest .open,
.latest .close {
  margin: 0 4px 7px 0;
  padding: 3px 8px;
  float: right;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 5px;
}

.latest .open {
  display: none;
}

.latest .close {
  display: block;
}

.latest .open:hover,
.latest .close:hover {
  color: var(--brand-dark);
  background: var(--brand-light);
}

.latest .gal {
  clear: both;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 9px;
  box-shadow: 0 3px 14px rgba(49, 67, 84, 0.05);
}

.latest .gallist {
  padding: 0;
  background: var(--surface);
}

.listBox {
  width: 100%;
}

.latest .latestList,
.latest .latestDay {
  height: 45px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.latest .latestList {
  color: var(--text);
  font-size: 0.87rem;
}

.latest .latestList a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.latest .latestList a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.latest .latestDay {
  width: 74px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
  white-space: nowrap;
}

.latest .listBox .reply,
.reply {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.substance {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.subtitle {
  margin-bottom: 12px;
}

.boardName {
  margin-bottom: 12px;
  padding-bottom: 11px;
  color: var(--brand-dark);
  font-size: 1.18rem;
  font-weight: 800;
  border-bottom: 3px solid var(--brand);
}

.listBox {
  table-layout: auto;
}

.listBox thead {
  background: var(--surface-soft);
}

.listTitle {
  padding: 12px 10px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--brand);
}

.listBox tbody tr:not(:last-child):nth-child(even) {
  background: #f8fafb;
}

.listBox tbody tr:not(:last-child):hover {
  background: #edf3f7;
}

.textList {
  height: 48px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
}

.textList:first-child {
  width: 62px;
  color: var(--brand);
  font-weight: 800;
}

.textList:nth-child(2) {
  color: var(--text);
}

.textList a {
  display: inline-block;
  padding: 3px 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
}

.textList a:hover,
.textList a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
}

.textCenter {
  text-align: center;
}

.textRight {
  text-align: right;
}

.textSmall {
  font-size: 0.8rem;
}

.min80 {
  min-width: 80px;
}

.min60 {
  min-width: 60px;
}

.paging {
  padding-top: 18px;
  line-height: 1.4;
  text-align: center;
  word-break: break-all;
}

.paging p {
  margin: 0;
}

.paging a,
.paging strong {
  display: inline-block;
  min-width: 36px;
  margin: 0 2px;
  padding: 7px 10px;
  text-align: center;
  text-decoration: none;
  border-radius: 7px;
}

.paging a {
  color: var(--brand-dark);
  background: var(--brand-light);
}

.paging a:hover {
  color: #fff;
  background: var(--brand);
}

.paging strong {
  color: #fff;
  background: var(--brand);
}

.viewBox {
  width: 100%;
}

.subjectView {
  padding: 0 0 14px;
  color: var(--brand-dark);
  border-bottom: 3px solid var(--brand);
}

.subjectView h1 {
  margin: 0;
  padding: 0;
  color: var(--brand-dark);
  font-size: clamp(1.3rem, 2.7vw, 1.75rem);
  font-weight: 800;
  line-height: 1.4;
}

.infoView {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.8rem;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.contentBox {
  height: auto;
  padding: 18px 0 8px;
  color: var(--text);
  border: 0;
}

.contentBox .clear {
  padding: 0;
}

.contentBox article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 12px;
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.65;
}

.contentBox article h2 {
  margin: 30px 0 9px;
  color: var(--brand-dark);
  font-size: 1.16rem;
  line-height: 1.4;
}

.contentBox article h2:first-child {
  margin-top: 14px;
}

.contentBox article p {
  margin: 0 0 15px;
}

.contentBox article a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration-color: #9cabb8;
  text-underline-offset: 3px;
}

.contentBox article img {
  display: block;
  max-width: 100%;
  margin: 28px auto;
  border-radius: 10px;
}

.prevBtn,
.nextBtn {
  display: block;
  margin-bottom: 16px;
  padding: 9px 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  background: var(--brand);
  border-radius: 7px;
}

.prevBtn {
  float: left;
}

.nextBtn {
  float: right;
}

.prevBtn:hover,
.nextBtn:hover {
  background: var(--brand-dark);
}

.commBox {
  width: 100%;
  margin-top: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 9px 9px;
}

.commList {
  padding: 12px;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.55;
  border-top: 1px dotted var(--line-strong);
}

.commList span {
  color: var(--muted);
  font-size: 0.78rem;
}

.noReply {
  padding: 24px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.bottom {
  padding: 18px 20px;
  color: #737f8b;
  font-size: 0.78rem;
  text-align: center;
  background: #e4eaef;
  border-top: 1px solid #ced7df;
}

.mobin {
  display: none;
  color: var(--muted);
  font-size: 0.78rem;
}

.clear {
  clear: both;
}

@media (max-width: 1000px) {
  .rankbox {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 760px) {
  .topbox,
  .contents {
    width: min(100% - 24px, 1100px);
  }

  .contents {
    padding: 13px 0 18px;
    gap: 12px;
  }

  .topbox {
    min-height: 62px;
  }

  .topbox .logo {
    flex-basis: 170px;
  }

  .topbox .logo img {
    max-height: 52px;
  }

  .topbox .menu {
    margin-left: 10px;
  }

  .topbox .menu a {
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .notice {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .notice h1 {
    font-size: 1.04rem;
  }

  .substance {
    padding: 15px 13px;
  }

  .mobnone {
    display: none;
  }

  .mobin {
    display: inline;
  }

  .listTitle {
    padding: 10px 7px;
  }

  .textList {
    height: auto;
    min-height: 61px;
    padding: 10px 8px;
  }

  .textList:first-child {
    width: 44px;
    min-width: 44px;
  }

  .contentBox article {
    padding: 0 2px;
    line-height: 1.62;
  }

  .contentBox article h2 {
    margin-top: 27px;
    font-size: 1.08rem;
  }
}

@media (max-width: 620px) {
  .rankbox {
    flex-basis: 100%;
  }

  .img {
    min-height: 105px;
  }
}

@media (max-width: 420px) {
  .topbox,
  .contents {
    width: min(100% - 18px, 1100px);
  }

  .topbox .logo {
    flex-basis: 145px;
  }

  .topbox .menu a {
    padding: 8px;
    font-size: 0.82rem;
  }

  .notice {
    padding: 13px 14px;
  }

  .site {
    padding-right: 12px;
    padding-left: 12px;
  }

  .latest .latestList,
  .latest .latestDay {
    padding-right: 9px;
    padding-left: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
