@charset "UTF-8";

/* Shared components used by archive.php and single.php */
.section-title {
  font-family: "Bowlby One", "Impact", "Arial Black", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--black);
}

.section-title span {
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: 0.1em;
  background: var(--black);
  color: var(--white);
  padding: 0.5rem 1rem;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--white);
  background: var(--black);
  border: 4px solid var(--black);
  box-shadow: 6px 6px 0 var(--red);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.detail-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--red);
  background: var(--red);
}

.detail-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--red);
}

.notfound-actions .detail-btn {
  min-width: 150px;
  min-height: 58px;
  white-space: nowrap;
}

.gal-header {
  margin-bottom: 3rem;
  text-align: center;
}

.rank-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* News archive */
.news-page-container {
  padding: 4rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  min-height: 70vh;
  text-align: center;
}

.news-title-main {
  font-family: "Bowlby One", "Impact", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 3rem;
  text-transform: uppercase;
  border-bottom: 8px solid var(--black);
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.news-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-top: 0.5rem;
}

.news-arrow {
  font-family: "Bowlby One", "Impact", sans-serif;
  font-size: 1.5rem;
  transition: transform 0.2s;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 0 1rem 0;
  text-align: left;
  margin-bottom: 2rem;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border: 4px solid var(--black);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s,
    background 0.2s;
}

.news-item:nth-child(odd) {
  transform: rotate(-1deg);
  box-shadow: 8px 8px 0 var(--red);
}

.news-item:nth-child(even) {
  transform: rotate(1deg);
  box-shadow: -8px 8px 0 var(--yellow);
  flex-direction: row-reverse;
}

.news-date {
  font-family: "Bowlby One", "Impact", sans-serif;
  font-size: 1.2rem;
  margin-right: 2rem;
  min-width: 120px;
  color: var(--red);
}

.news-title {
  font-weight: 900;
  flex: 1;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.search-result-summary {
  display: inline-block;
  margin: -1.5rem auto 3rem;
  padding: 0.6rem 1rem;
  background: var(--yellow);
  color: var(--black);
  border: 4px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  font-family: "Dela Gothic One", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0;
}

.search-no-results {
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: 4px solid var(--black);
  box-shadow: 8px 8px 0 var(--red);
  text-align: center;
  transform: rotate(-1deg);
}

.search-no-results p {
  margin-bottom: 1.5rem;
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0;
}

.news-item:nth-child(even) .news-date {
  margin-right: 0;
  margin-left: 2rem;
  text-align: right;
}

.news-item:nth-child(even) .news-arrow {
  transform: rotate(180deg);
}

.news-item:hover {
  transform: rotate(0deg) scale(1.02);
  background: var(--black);
  color: var(--white);
}

.news-item:hover .news-date {
  color: var(--yellow);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-family: "Bowlby One", "Impact", sans-serif;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.2s;
}

.page-link:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--red);
}

.page-link.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.page-dots {
  font-family: "Bowlby One", "Impact", sans-serif;
  font-size: 1.2rem;
  color: var(--black);
  padding: 0 0.5rem;
}

.prev-link,
.next-link {
  font-size: 1rem;
  padding: 0 1rem;
}

@media (max-width: 767px) {
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .news-date {
    margin-right: 0;
  }

  .news-arrow {
    display: none;
  }

  .news-item:nth-child(even) {
    flex-direction: column;
  }

  .news-item:nth-child(even) .news-date {
    margin-left: 0;
    text-align: left;
  }
}

.view-all-btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: "Bowlby One", "Impact", sans-serif;
  font-size: 1.2rem;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  border: 4px solid var(--black);
  box-shadow: 6px 6px 0 var(--red);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.view-all-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--red);
  background: var(--red);
}

@media (max-width: 767px) {
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .news-item .date {
    min-width: auto;
    margin-right: 0;
  }

  .news-item .arrow {
    display: none;
  }
}

/* Single news detail */
.detail-container {
  max-width: 1180px;
  margin: 4rem auto 5rem;
  padding: 0 1rem;
  position: relative;
}

.detail-container::before {
  content: "NEWS";
  position: absolute;
  top: 3rem;
  right: -1rem;
  z-index: -1;
  color: rgba(0, 0, 0, 0.035);
  font-family: "Bowlby One", "Impact", sans-serif;
  font-size: clamp(5rem, 18vw, 14rem);
  line-height: 1;
  transform: rotate(-6deg);
  white-space: nowrap;
  pointer-events: none;
}

.article-card {
  background: #fff;
  padding: 0;
  position: relative;
}

.article-card-single {
  border: 6px solid var(--black);
  box-shadow: 10px 10px 0 var(--yellow);
}

.article-card-single::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  z-index: -1;
  width: 45%;
  height: 140px;
  background: var(--red);
  border: 6px solid var(--black);
  transform: rotate(2deg);
}

.article-visual {
  position: relative;
  background: var(--black);
  border-bottom: 6px solid var(--black);
}

.article-card .thumbnail_bok {
  margin-bottom: 0;
  overflow: hidden;
}

.article-card .thumbnail_bok img {
  width: 100%;
  height: clamp(260px, 52vw, 560px);
  object-fit: cover;
  display: block;
  filter: contrast(1.08) saturate(1.06);
}

.article-kicker {
  z-index: 3;
  position: absolute;
  left: 1rem;
  bottom: -1.4rem;
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.55rem 1rem;
  background: var(--red);
  color: var(--white);
  border: 4px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  font-family: "Bowlby One", "Impact", sans-serif;
  font-size: clamp(1.3rem, 4vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.05em;
  transform: rotate(-2deg);
}

.article-head {
  padding: 3.5rem 1.25rem 1.75rem;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.18) 0 25%, transparent 25% 100%),
    var(--white);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.article-meta-date,
.article-meta-category {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.8rem;
  border: 4px solid var(--black);
  font-family: "Bowlby One", "Impact", sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.article-meta-date {
  background: var(--black);
  color: var(--white);
}

.article-meta-category {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 4px 4px 0 var(--black);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.article-meta-category:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}

.news-title-single {
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 1.12;
  margin-bottom: 0;
  border-bottom: 8px solid var(--black);
  padding-bottom: 1rem;
  letter-spacing: 0;
}

.content {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 700;
}

.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
  font-family: "Noto Sans JP", sans-serif;
}

.content p {
  margin-bottom: 1.2rem;
}

.content h2 {
  font-family: "Dela Gothic One", sans-serif;
  background: var(--yellow);
  display: inline-block;
  padding: 0.35rem 0.9rem;
  margin: 2rem 0 1rem;
  border: 4px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 1.15rem;
  line-height: 1.4;
}

.content h3 {
  margin: 1.8rem 0 0.8rem;
  padding-left: 0.8rem;
  border-left: 8px solid var(--red);
  font-family: "Dela Gothic One", sans-serif;
  font-size: 1.15rem;
  line-height: 1.5;
}

.content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.content a:not(.detail-btn) {
  color: var(--black);
  text-decoration: none;
  border-bottom: 4px solid var(--yellow);
  box-shadow: inset 0 -0.35em 0 var(--yellow);
  transition:
    color 0.2s,
    box-shadow 0.2s;
}

.content a:not(.detail-btn):hover {
  color: var(--red);
  box-shadow: inset 0 -0.6em 0 rgba(250, 204, 21, 0.7);
}

.content img {
  max-width: 100%;
  height: auto;
  border: 4px solid var(--black);
  box-shadow: 7px 7px 0 var(--yellow);
}

.article-pager {
  display: grid;
  gap: 1rem;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0 1.25rem;
}

.article-pager-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 1rem;
  background: var(--white);
  color: var(--black);
  border: 4px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.article-pager-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--red);
  background: var(--yellow);
}

.article-pager-link span {
  font-family: "Bowlby One", "Impact", sans-serif;
  font-size: 0.85rem;
  color: var(--red);
  letter-spacing: 0.05em;
}

.article-pager-link strong {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-actions {
  margin-top: 3rem;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 6px solid var(--black);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.05) 0 8px,
      transparent 8px 16px
    ),
    var(--yellow);
}

@media (min-width: 768px) {
  .detail-container {
    margin: 5rem auto 6rem;
    padding: 0 2rem;
  }

  .article-card-single {
    border-width: 8px;
    box-shadow: 16px 16px 0 var(--yellow);
    margin-bottom: 5rem;
  }

  .article-card-single::after {
    right: -28px;
    bottom: -28px;
    height: 180px;
    border-width: 8px;
  }

  .article-visual {
    border-bottom-width: 8px;
  }

  .article-kicker {
    left: 2rem;
    bottom: -1.8rem;
    border-width: 5px;
    box-shadow: 8px 8px 0 var(--black);
  }

  .article-head {
    padding: 4.5rem 3rem 2.5rem;
  }

  .article-meta-date,
  .article-meta-category {
    padding: 0.45rem 1rem;
    font-size: 1rem;
  }

  .news-title-single {
    padding-bottom: 1.25rem;
  }

  .content {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  .article-content {
    padding: 3rem 2rem 0;
  }

  .content h2 {
    padding: 0.45rem 1rem;
    margin: 2.5rem 0 1.2rem;
    font-size: 1.5rem;
  }

  .content h3 {
    font-size: 1.3rem;
  }

  .article-pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 2rem;
  }

  .article-pager-next {
    text-align: right;
  }

  .article-actions {
    padding: 2.5rem 2rem 3rem;
    border-top-width: 8px;
  }
}

@media (max-width: 520px) {
  .detail-container {
    margin: 3rem auto 4rem;
    padding: 0 0.75rem;
  }

  .article-card-single {
    box-shadow: 8px 8px 0 var(--yellow);
  }

  .article-card-single::after {
    display: none;
  }

  .article-card .thumbnail_bok img {
    height: clamp(220px, 78vw, 360px);
  }

  .article-kicker {
    left: 0.75rem;
    bottom: -1.15rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
  }

  .article-head {
    padding: 3rem 1rem 1.5rem;
  }

  .article-meta-date,
  .article-meta-category {
    min-height: 2.2rem;
    border-width: 3px;
    font-size: 0.82rem;
  }

  .news-title-single {
    border-bottom-width: 6px;
  }

  .article-content {
    padding: 1.75rem 1rem 0;
  }

  .article-pager {
    padding: 0 1rem;
  }

  .article-actions {
    padding: 1.5rem 1rem 2rem;
  }

  .article-actions .detail-btn {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .notfound-actions .detail-btn {
    width: 100%;
  }
}
