/*
  HokkaidoPress
  Static HTML/CSS prototype
  Folder structure:
  - index.html
  - article.html
  - assets/css/style.css
  - assets/js/main.js
  - assets/images/
*/

:root {
  --deep-navy: #0b1f33;
  --navy-2: #12314e;
  --snow-blue: #eaf4f8;
  --forest-teal: #1e6b6c;
  --alpine-gold: #d9a441;
  --sapporo-brick: #b75c3a;
  --off-snow: #f7fafc;
  --white: #ffffff;
  --ink: #101820;
  --slate: #65758b;
  --ice-border: #dce7ee;
  --soft-shadow: 0 16px 40px rgba(11, 31, 51, 0.08);
  --hard-shadow: 0 22px 60px rgba(11, 31, 51, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --article-width: 720px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--off-snow);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(217, 164, 65, 0.35);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 34px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.kicker,
.category-label,
.ad-label,
.meta,
.nav-menu,
.btn,
.hbtp-tag,
.eyebrow {
  font-family: "Inter", system-ui, sans-serif;
}

.kicker,
.category-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--forest-teal);
  background: rgba(30, 107, 108, 0.1);
  border: 1px solid rgba(30, 107, 108, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.category-label--gold {
  color: #715006;
  background: rgba(217, 164, 65, 0.16);
  border-color: rgba(217, 164, 65, 0.24);
}

.category-label--brick {
  color: #7a311b;
  background: rgba(183, 92, 58, 0.12);
  border-color: rgba(183, 92, 58, 0.2);
}

.editorial-title,
h1,
h2,
h3 {
  margin: 0;
  color: var(--deep-navy);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.lead {
  color: var(--slate);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}

.muted {
  color: var(--slate);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: var(--deep-navy);
  box-shadow: 0 16px 36px rgba(11, 31, 51, 0.14);
}

.btn--primary:hover {
  background: var(--navy-2);
}

.btn--gold {
  color: var(--deep-navy);
  background: var(--alpine-gold);
  box-shadow: 0 16px 36px rgba(217, 164, 65, 0.18);
}

.btn--ghost {
  color: var(--deep-navy);
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--ice-border);
}

.btn--ghost:hover {
  background: var(--white);
  border-color: rgba(11, 31, 51, 0.2);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest-teal);
  font-size: 14px;
  font-weight: 800;
}

.link-arrow::after {
  content: "→";
  transition: transform var(--transition);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(220, 231, 238, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(11, 31, 51, 0.08);
  box-shadow: 0 10px 30px rgba(11, 31, 51, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 82px;
}

.logo {
  display: inline-flex;
  align-items: center;
  width: 238px;
  max-width: 100%;
}

.logo img {
  width: 100%;
  height: auto;
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 26px);
  color: var(--deep-navy);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.nav-menu a {
  position: relative;
  padding: 28px 0;
}

.nav-menu a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  content: "";
  background: var(--alpine-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--deep-navy);
  border: 1px solid var(--ice-border);
  border-radius: 999px;
  background: #fff;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 31, 51, 0.18);
  background: var(--snow-blue);
}

.menu-toggle {
  display: none;
}

/* Mobile navigation */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  background: rgba(11, 31, 51, 0.42);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel__body {
  width: min(420px, 88vw);
  height: 100%;
  margin-left: auto;
  padding: 24px;
  background: var(--white);
  box-shadow: -18px 0 50px rgba(11, 31, 51, 0.16);
}

.mobile-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mobile-nav {
  display: grid;
  gap: 4px;
}

.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--ice-border);
  color: var(--deep-navy);
  font-weight: 800;
}

.mobile-nav a::after {
  content: "→";
  color: var(--forest-teal);
}

/* Search */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  background: rgba(11, 31, 51, 0.62);
  padding: 24px;
}

.search-modal.is-open {
  display: grid;
  place-items: start center;
}

.search-modal__box {
  width: min(780px, 100%);
  margin-top: 8vh;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--hard-shadow);
  padding: clamp(22px, 4vw, 38px);
}

.search-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ice-border);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  background: var(--off-snow);
}

.search-form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  min-height: 46px;
  color: var(--deep-navy);
  font-size: 18px;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* Hero */
.hero {
  padding: 34px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.88fr);
  gap: 18px;
}

.hero-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--deep-navy);
  box-shadow: var(--soft-shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(11, 31, 51, 0.02) 20%, rgba(11, 31, 51, 0.82) 100%);
}

.hero-card__content {
  position: absolute;
  left: clamp(22px, 4vw, 44px);
  right: clamp(22px, 4vw, 44px);
  bottom: clamp(24px, 4vw, 44px);
  z-index: 1;
  color: #fff;
}

.hero-card .editorial-title {
  color: #fff;
  max-width: 760px;
  margin: 16px 0 12px;
  font-size: clamp(2.15rem, 4.8vw, 4.7rem);
}

.hero-card .lead {
  color: rgba(255, 255, 255, 0.84);
  max-width: 650px;
  margin: 0 0 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.top-stack {
  display: grid;
  gap: 18px;
}

.top-story {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  min-height: 126px;
  border: 1px solid var(--ice-border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(11, 31, 51, 0.04);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.top-story:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 107, 108, 0.22);
  box-shadow: var(--soft-shadow);
}

.top-story__image img {
  width: 100%;
  height: 100%;
  min-height: 126px;
  object-fit: cover;
}

.top-story__body {
  padding: 14px 14px 14px 0;
}

.top-story h3 {
  margin: 8px 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.meta {
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
}

.breaking-strip {
  margin-top: 18px;
  border: 1px solid var(--ice-border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.breaking-strip__inner {
  display: flex;
  align-items: stretch;
  min-height: 54px;
}

.breaking-label {
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: #fff;
  background: var(--forest-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.breaking-scroll {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.breaking-scroll::-webkit-scrollbar {
  display: none;
}

.breaking-scroll a {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  border-right: 1px solid var(--ice-border);
  color: var(--deep-navy);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.breaking-scroll a::before {
  content: "›";
  color: var(--alpine-gold);
  margin-right: 10px;
  font-size: 18px;
}

/* Category cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--ice-border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.04);
}

.category-card {
  min-height: 190px;
  padding: 24px 18px;
  border-right: 1px solid var(--ice-border);
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.category-card:last-child {
  border-right: 0;
}

.category-card:hover {
  background: var(--snow-blue);
}

.category-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--forest-teal);
  border-radius: 50%;
  background: rgba(30, 107, 108, 0.1);
  font-size: 22px;
}

.category-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.category-card p {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.55;
}

/* Article cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--ice-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(11, 31, 51, 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 107, 108, 0.24);
  box-shadow: var(--soft-shadow);
}

.article-card__image {
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  background: var(--snow-blue);
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.article-card:hover .article-card__image img {
  transform: scale(1.035);
}

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 16px;
}

.article-card h3 {
  font-size: 1.24rem;
}

.article-card p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
}

/* Business band */
.business-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--deep-navy);
}

.business-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(11, 31, 51, 0.96) 0%, rgba(11, 31, 51, 0.82) 46%, rgba(11, 31, 51, 0.34) 100%), url("../images/sapporo-night.svg") center/cover no-repeat;
}

.business-band .container {
  position: relative;
  z-index: 1;
}

.business-band__content {
  max-width: 620px;
}

.business-band h2 {
  color: #fff;
}

.business-band p {
  color: rgba(255, 255, 255, 0.78);
}

.insight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.insight-list li {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 700;
}

/* CTA split */
.cta-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid var(--ice-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.cta-block {
  padding: clamp(24px, 4vw, 42px);
}

.cta-block + .cta-block {
  border-left: 1px solid var(--ice-border);
  background: var(--snow-blue);
}


/* Footer */
.site-footer {
  margin-top: 64px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--deep-navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 40px;
  padding: 58px 0;
}

.footer-brand img {
  width: 260px;
  filter: none;
}

.footer-brand p {
  max-width: 380px;
}

.footer-links h3 {
  margin-bottom: 14px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 13px;
}

/* Article page */
.article-hero {
  padding: 38px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--forest-teal);
}

.article-header {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.article-header .kicker {
  margin-inline: auto;
}

.article-header h1 {
  margin: 16px auto 18px;
  max-width: 920px;
  font-size: clamp(2.45rem, 5.8vw, 5.4rem);
}

.article-header .lead {
  max-width: 760px;
  margin: 0 auto 22px;
}

.article-byline {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
}

.article-share {
  display: flex;
  gap: 8px;
}

.article-visual {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--deep-navy);
  box-shadow: var(--soft-shadow);
}

.article-visual img {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
}

.caption {
  margin: 10px auto 0;
  width: min(1180px, calc(100% - 40px));
  color: var(--slate);
  font-size: 12px;
  text-align: right;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article-width)) 320px;
  align-items: start;
  gap: 58px;
  margin-top: 44px;
}

.article-body {
  min-width: 0;
}

.article-body p {
  margin: 0 0 1.25em;
  font-size: 18px;
  line-height: 1.86;
}

.article-body h2 {
  margin: 2.1em 0 0.72em;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.article-body h3 {
  margin: 1.7em 0 0.5em;
}

.article-body a {
  color: var(--forest-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.summary-box,
.editor-note,
.data-box,
.location-box {
  border: 1px solid var(--ice-border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 0 0 28px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(11, 31, 51, 0.04);
}

.summary-box {
  background: linear-gradient(180deg, #fff, var(--snow-blue));
}

.summary-box h2,
.editor-note h2,
.data-box h2,
.location-box h2 {
  margin: 0 0 12px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-box ul,
.insight-points {
  margin: 0;
  padding-left: 1.1em;
}

.summary-box li,
.insight-points li {
  margin: 0.42em 0;
}

.editor-note {
  border-left: 4px solid var(--forest-teal);
  background: #fff;
}

.editor-note p {
  margin: 0;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--ice-border);
  padding: 11px 0;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  width: 34%;
  color: var(--slate);
  font-size: 13px;
  text-transform: uppercase;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

.ad-box {
  position: relative;
  margin: 30px 0;
  border: 1px solid var(--ice-border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.ad-label {
  display: block;
  padding: 8px 12px;
  color: var(--slate);
  border-bottom: 1px solid var(--ice-border);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.ad-box img {
  width: 100%;
}

.ad-box--inline {
  margin: 34px 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.hbtp-tag {
  display: inline-flex;
  border: 1px solid var(--ice-border);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--deep-navy);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.author-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  margin-top: 38px;
  border: 1px solid var(--ice-border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: #fff;
}

.author-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #fff;
  border-radius: 50%;
  background: var(--deep-navy);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 700;
}

.author-card h3 {
  margin-bottom: 4px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

.author-card p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.65;
}

.sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.sidebar-card {
  border: 1px solid var(--ice-border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(11, 31, 51, 0.04);
}

.sidebar-card h2 {
  margin: 0 0 14px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-list,
.mini-news-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--ice-border);
  padding-bottom: 10px;
  color: var(--deep-navy);
  font-size: 14px;
  font-weight: 800;
}

.topic-list li:last-child a {
  border-bottom: 0;
  padding-bottom: 0;
}

.topic-list a::after {
  content: "→";
  color: var(--forest-teal);
}

.sidebar-news {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
}

.sidebar-news img {
  aspect-ratio: 1.15 / 1;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.sidebar-news h3 {
  margin: 0 0 3px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
}

.related-section {
  padding-top: 40px;
}

/* Responsive */
@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: 230px 1fr auto;
  }

  .nav-menu {
    gap: 14px;
    font-size: 12px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-card {
    border-bottom: 1px solid var(--ice-border);
  }

  .category-card:nth-child(3n) {
    border-right: 0;
  }

  .category-card:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 170px 1fr;
    min-height: 72px;
  }

  .nav-menu {
    display: none;
  }

  .header-actions .desktop-only {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 520px;
  }

  .top-stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .top-story {
    grid-template-columns: 1fr;
  }

  .top-story__image {
    aspect-ratio: 1.91 / 1;
  }

  .top-story__body {
    padding: 14px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar .ad-box,
  .sidebar-card--full {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .container,
  .article-visual,
  .caption {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 48px 0;
  }

  .section-heading {
    display: grid;
    gap: 10px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-card {
    min-height: 510px;
    border-radius: 20px;
  }

  .hero-card__content {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }

  .hero-card .editorial-title {
    font-size: clamp(2.2rem, 12vw, 3.7rem);
  }

  .top-stack {
    grid-template-columns: 1fr;
  }

  .top-story {
    grid-template-columns: 116px 1fr;
  }

  .top-story__image {
    aspect-ratio: auto;
  }

  .top-story__body {
    padding: 13px 13px 13px 0;
  }

  .breaking-strip__inner {
    display: grid;
  }

  .breaking-label {
    min-height: 42px;
  }

  .category-grid,
  .card-grid,
  .cta-split,
  .sidebar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-card:nth-child(3n),
  .category-card:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--ice-border);
  }

  .category-card:last-child {
    border-bottom: 0;
  }

  .cta-block + .cta-block {
    border-left: 0;
    border-top: 1px solid var(--ice-border);
  }

  .search-form {
    align-items: stretch;
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 12px;
  }

  .search-form .btn {
    width: 100%;
  }

  .article-header {
    text-align: left;
  }

  .article-header .kicker {
    margin-inline: 0;
  }

  .article-byline {
    justify-content: flex-start;
  }

  .article-visual {
    border-radius: 18px;
  }

  .caption {
    text-align: left;
  }

  .article-body p {
    font-size: 17px;
    line-height: 1.82;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 480px) {
  .header-inner {
    grid-template-columns: 170px 1fr;
  }

  .logo {
    width: 160px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .hero-card {
    min-height: 480px;
  }

  .hero-meta {
    gap: 9px;
    font-size: 12px;
  }

  .top-story {
    grid-template-columns: 100px 1fr;
  }

  .top-story h3 {
    font-size: 1rem;
  }

  .summary-box,
  .editor-note,
  .data-box,
  .location-box,
  .sidebar-card {
    padding: 18px;
  }
}

/* WordPress integration */
.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  clip: auto;
  color: var(--deep-navy);
  background: #fff;
  border: 2px solid var(--alpine-gold);
  border-radius: 10px;
}

.nav-menu ul,
.mobile-nav ul,
.footer-menu {
  display: inherit;
  gap: inherit;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu ul {
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-menu .current-menu-item > a::after,
.nav-menu .current-menu-ancestor > a::after,
.nav-menu .current_page_item > a::after,
.nav-menu .current_page_parent > a::after {
  transform: scaleX(1);
}

.mobile-nav ul,
.footer-menu {
  display: grid;
}

.mobile-nav li,
.footer-menu li {
  list-style: none;
}

.footer-menu a {
  display: block;
}

.archive-hero {
  padding-bottom: 28px;
}

.archive-header {
  max-width: 880px;
}

.archive-header h1 {
  margin: 14px 0 14px;
}

.archive-header .search-form--page {
  max-width: 720px;
  margin-top: 24px;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 58px;
  align-items: start;
}

.pagination-wrap {
  margin-top: 34px;
}

.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--ice-border);
  border-radius: 999px;
  background: #fff;
  color: var(--deep-navy);
  font-weight: 800;
  font-size: 13px;
}

.pagination-wrap .page-numbers.current {
  color: #fff;
  background: var(--deep-navy);
  border-color: var(--deep-navy);
}

.article-card--empty {
  min-height: 220px;
  padding: 20px;
}

.article-layout--page {
  margin-top: 44px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.35em 1.2em;
  padding: 0;
  font-size: 18px;
  line-height: 1.86;
}

.article-body blockquote {
  margin: 2em 0;
  border-left: 4px solid var(--alpine-gold);
  padding: 8px 0 8px 22px;
  color: var(--slate);
  font-size: 1.12rem;
}

.page-links {
  margin: 28px 0;
  font-weight: 800;
}

@media (max-width: 980px) {
  .archive-layout {
    grid-template-columns: 1fr;
  }
}

.archive-layout .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .archive-layout .card-grid {
    grid-template-columns: 1fr;
  }
}


/* HokkaidoPress readability refresh v1.1.1
   English-first UI, standard sans-serif typography, and calmer title scale. */
:root {
  --font-sans: Arial, Helvetica, "Segoe UI", Roboto, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: Arial, Helvetica, "Segoe UI", Roboto, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --article-width: 760px;
}

body,
button,
input,
select,
textarea,
.kicker,
.category-label,
.ad-label,
.meta,
.nav-menu,
.btn,
.hbtp-tag,
.eyebrow,
.summary-box h2,
.editor-note h2,
.data-box h2,
.location-box h2,
.related-item h3,
.sidebar-title {
  font-family: var(--font-sans);
}

.editorial-title,
h1,
h2,
h3,
.article-body h2,
.article-body h3,
.search-modal__head h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}

h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
}

.section {
  padding: 52px 0;
}

.hero-card .editorial-title {
  max-width: 780px;
  font-size: clamp(2rem, 4.1vw, 3.6rem);
  line-height: 1.14;
}

.archive-hero {
  padding: 46px 0 30px;
}

.archive-header h1 {
  max-width: 920px;
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.16;
}

.article-hero {
  padding: 32px 0 0;
}

.article-header {
  max-width: 880px;
}

.article-header h1 {
  max-width: 880px;
  margin: 14px auto 16px;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.16;
}

.article-header .lead {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.article-body p {
  font-size: 17px;
  line-height: 1.82;
}

.article-body h2 {
  margin: 2em 0 0.68em;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.28;
}

.article-body h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  line-height: 1.34;
}

.card-title,
.top-story h3,
.news-item h3,
.related-item h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.kicker,
.category-label,
.eyebrow {
  letter-spacing: 0.07em;
}

@media (max-width: 720px) {
  .container,
  .article-visual,
  .caption {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 38px 0;
  }

  .hero-card .editorial-title,
  .article-header h1,
  .archive-header h1 {
    font-size: clamp(1.8rem, 8vw, 2.65rem);
  }

  .article-body p {
    font-size: 16px;
    line-height: 1.78;
  }
}

/* Advertising */
.section--ad {
  padding-top: 24px;
  padding-bottom: 18px;
}

.ad-slot {
  --ad-slot-max-width: 100%;
  width: 100%;
  max-width: var(--ad-slot-max-width);
  margin-right: auto;
  margin-left: auto;
  clear: both;
  text-align: center;
}

.ad-slot__label {
  display: block;
  margin-bottom: 8px;
  color: var(--slate);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ad-slot__content {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: center;
}

.ad-slot__content > * {
  max-width: 100%;
}

.ad-slot__content img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.ad-slot__content iframe {
  max-width: 100%;
  border: 0;
}

.ad-slot__content ins.adsbygoogle {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.ad-slot--shape-wide,
.ad-slot--wide {
  --ad-slot-max-width: 970px;
}

.ad-slot--shape-in-content {
  --ad-slot-max-width: 728px;
}

.ad-slot--shape-rectangle,
.ad-slot--article-middle {
  --ad-slot-max-width: 336px;
}

.ad-slot--article-top,
.ad-slot--article-bottom,
.ad-slot--article-middle {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--ice-border);
  border-bottom: 1px solid var(--ice-border);
}

.ad-slot--article-top {
  margin-top: 0;
}

.ad-slot--article-middle {
  margin-right: auto;
  margin-left: auto;
}

.ad-slot--article-bottom {
  margin-bottom: 34px;
}

.cta-split--single {
  grid-template-columns: 1fr;
}

.cta-split--single .cta-block {
  max-width: 820px;
}

@media (max-width: 760px) {
  .section--ad {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .ad-slot--shape-wide,
  .ad-slot--wide,
  .ad-slot--shape-in-content,
  .ad-slot--shape-rectangle,
  .ad-slot--article-middle {
    --ad-slot-max-width: 100%;
  }

  .ad-slot--article-top,
  .ad-slot--article-bottom,
  .ad-slot--article-middle {
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 16px 0;
  }

  .ad-slot--article-top {
    margin-top: 0;
  }
}

@media (max-width: 360px) {
  .ad-slot__content {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
}


/* WordPress body class conflict guard (v1.4.1).
   WordPress adds class="tag" to tag archives; UI chips use .hbtp-tag instead. */
body.tag {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--off-snow);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-transform: none;
}


/* =========================================================
   Contact Form 7
   HokkaidoPress
========================================================= */

/* フォーム全体 */
.article-body .wpcf7 {
    width: 100%;
    margin: 32px 0;
    padding: 32px;
    background: #f7f8fa;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    box-sizing: border-box;
}

/* 各入力項目 */
.article-body .wpcf7-form p {
    margin: 0 0 24px;
    color: #1f2933;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}

/* 最後の送信ボタン部分 */
.article-body .wpcf7-form p:last-of-type {
    margin-bottom: 0;
}

/* 入力欄のラッパー */
.article-body .wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}

/* テキスト・メール・URL・電話・セレクト */
.article-body .wpcf7 input[type="text"],
.article-body .wpcf7 input[type="email"],
.article-body .wpcf7 input[type="url"],
.article-body .wpcf7 input[type="tel"],
.article-body .wpcf7 input[type="number"],
.article-body .wpcf7 input[type="date"],
.article-body .wpcf7 select,
.article-body .wpcf7 textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 13px 14px;
    color: #202832;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    background: #ffffff;
    border: 1px solid #b8c1cc;
    border-radius: 4px;
    box-shadow: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

/* テキストエリア */
.article-body .wpcf7 textarea {
    min-height: 200px;
    resize: vertical;
}

/* フォーカス時 */
.article-body .wpcf7 input[type="text"]:focus,
.article-body .wpcf7 input[type="email"]:focus,
.article-body .wpcf7 input[type="url"]:focus,
.article-body .wpcf7 input[type="tel"]:focus,
.article-body .wpcf7 input[type="number"]:focus,
.article-body .wpcf7 input[type="date"]:focus,
.article-body .wpcf7 select:focus,
.article-body .wpcf7 textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #9a7328;
    box-shadow: 0 0 0 3px rgba(154, 115, 40, 0.18);
}

/* プレースホルダー */
.article-body .wpcf7 input::placeholder,
.article-body .wpcf7 textarea::placeholder {
    color: #7c8794;
    opacity: 1;
}

/* 送信ボタン */
.article-body .wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 48px;
    margin: 4px 0 0;
    padding: 12px 28px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-align: center;
    background: #17212b;
    border: 1px solid #17212b;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* 送信ボタン：マウスを乗せた時 */
.article-body .wpcf7 input[type="submit"]:hover {
    background: #9a7328;
    border-color: #9a7328;
    transform: translateY(-1px);
}

/* 送信ボタン：キーボード操作時 */
.article-body .wpcf7 input[type="submit"]:focus-visible {
    outline: 3px solid rgba(154, 115, 40, 0.35);
    outline-offset: 3px;
}

/* 送信中 */
.article-body .wpcf7 input[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

/* スピナー */
.article-body .wpcf7 .wpcf7-spinner {
    margin: 0 0 0 12px;
    vertical-align: middle;
}

/* 入力エラー */
.article-body .wpcf7 .wpcf7-not-valid {
    border-color: #b42318;
    background: #fffafa;
}

/* エラーメッセージ */
.article-body .wpcf7 .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: #b42318;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* 送信結果メッセージ共通 */
.article-body .wpcf7 form .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.6;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
}

/* 送信成功 */
.article-body .wpcf7 form.sent .wpcf7-response-output {
    color: #166534;
    background: #f0fdf4;
    border-color: #86c99a;
}

/* 入力エラー・送信失敗 */
.article-body .wpcf7 form.invalid .wpcf7-response-output,
.article-body .wpcf7 form.failed .wpcf7-response-output,
.article-body .wpcf7 form.aborted .wpcf7-response-output {
    color: #8a1c13;
    background: #fff4f2;
    border-color: #e6a49e;
}

/* スパム判定 */
.article-body .wpcf7 form.spam .wpcf7-response-output {
    color: #744210;
    background: #fffbea;
    border-color: #d9b65f;
}

/* モバイル */
@media screen and (max-width: 767px) {
    .article-body .wpcf7 {
        margin: 24px 0;
        padding: 20px 16px;
        border-radius: 6px;
    }

    .article-body .wpcf7-form p {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .article-body .wpcf7 input[type="text"],
    .article-body .wpcf7 input[type="email"],
    .article-body .wpcf7 input[type="url"],
    .article-body .wpcf7 input[type="tel"],
    .article-body .wpcf7 input[type="number"],
    .article-body .wpcf7 input[type="date"],
    .article-body .wpcf7 select,
    .article-body .wpcf7 textarea {
        padding: 12px;
        font-size: 16px;
    }

    .article-body .wpcf7 textarea {
        min-height: 180px;
    }

    .article-body .wpcf7 input[type="submit"] {
        width: 100%;
        min-height: 50px;
    }

    .article-body .wpcf7 .wpcf7-spinner {
        display: block;
        margin: 12px auto 0;
    }
}
/* =========================================================
   Original Published archive filter (v1.4.3)
========================================================= */
.section--article-filter {
  padding-top: 34px;
  padding-bottom: 34px;
}

.article-filter-panel {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--ice-border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(11, 31, 51, 0.05);
}

.article-filter-heading {
  align-items: end;
  margin-bottom: 24px;
}

.article-filter-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--slate);
  font-size: 15px;
}

.article-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(155px, 1fr));
  gap: 16px;
  align-items: end;
}

.article-filter-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.article-filter-field label {
  color: var(--deep-navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.article-filter-field input,
.article-filter-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--deep-navy);
  font: inherit;
  font-size: 15px;
  background: var(--off-snow);
  border: 1px solid var(--ice-border);
  border-radius: 8px;
  box-sizing: border-box;
}

.article-filter-field input:focus,
.article-filter-field select:focus {
  outline: 3px solid rgba(30, 107, 108, 0.16);
  outline-offset: 1px;
  border-color: var(--forest-teal);
}

.article-filter-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 16px;
  margin-top: 2px;
}

.article-filter-reset {
  color: var(--forest-teal);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-filter-results {
  margin-top: 44px;
}

.article-filter-results .article-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

@media (max-width: 1080px) {
  .article-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-filter-field--keyword {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .section--article-filter {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .article-filter-panel {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .article-filter-heading {
    align-items: start;
  }

  .article-filter-form {
    grid-template-columns: 1fr;
  }

  .article-filter-field--keyword,
  .article-filter-actions {
    grid-column: auto;
  }

  .article-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .article-filter-actions .btn,
  .article-filter-reset {
    width: 100%;
    text-align: center;
  }
}
