/* ===================================================
   JOA Hokkaido – Static Site Stylesheet
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Container ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 232, 232, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-logo { flex-shrink: 0; }
.header-logo a { display: flex; align-items: center; }
.header-logo img { height: 90px; width: auto; }

/* ---------- Desktop Nav ---------- */
.site-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: .25rem;
}

.nav-list > li { position: relative; }

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  letter-spacing: .02em;
  position: relative;
}

.nav-list > li > a:not(.contact-button) i { display: none; }

.nav-list > li > a::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 2px;
  background: #f0885a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-list > li > a:hover::after,
.nav-list > li > a.active::after { transform: scaleX(1); }

.nav-list > li > a.active { color: #f0885a; }

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 2px solid #f0885a;
  min-width: 190px;
  list-style: none;
  z-index: 300;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: .7rem 1.25rem;
  font-size: .85rem;
  color: #1a1a1a;
  letter-spacing: .02em;
  transition: background .15s, color .15s;
}

.dropdown li a:hover { background: #fff7f4; color: #f0885a; }

/* ---------- Bottom Nav (mobile) ---------- */
.bottom-nav { display: none; }

.mobile-menu-btn { display: none; }

/* ===================================================
   HERO
   =================================================== */
.hero { width: 100%; overflow: hidden; }
.hero img { width: 100%; height: auto; }
.hero .hero-sp { display: none; }

/* ===================================================
   CATEGORY BADGES
   =================================================== */
.badge {
  display: inline-block;
  padding: .15rem .65rem;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 2px;
  white-space: nowrap;
  letter-spacing: .04em;
}

.badge-important { background: #fee2e2; color: #dc2626; }
.badge-news { background: #fff0e8; color: #f0885a; border: 1px solid #f0885a; }
.badge-useful { background: #d1fae5; color: #059669; }

/* ===================================================
   NEWS SECTION (homepage / category pages)
   =================================================== */
.news-section { background: #fff; padding: 4rem 0; }

.section-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  letter-spacing: -.01em;
  position: relative;
  padding-left: 1rem;
}

.section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: .15em;
  bottom: .15em;
  width: 4px;
  background: #f0885a;
  border-radius: 2px;
}

/* News list – 2-column grid */
.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  list-style: none;
}

.news-list li { display: flex; }

/* News card */
.news-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  color: inherit;
  transition: border-color .2s;
}

.news-card:hover { border-color: #f0885a; }

.news-card-thumb {
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.news-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.news-card:hover .news-card-thumb img { transform: scale(1.04); }

.news-card-body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: .5rem;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.news-card-date { font-size: .78rem; color: #999; letter-spacing: .04em; }

.news-card-title {
  font-size: .975rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.55;
  transition: color .2s;
}

.news-card:hover .news-card-title { color: #f0885a; }

.news-card-excerpt {
  font-size: 1rem;
  color: #777;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================================================
   PAGINATION
   =================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .5rem;
  border: 1px solid #e8e8e8;
  font-size: .875rem;
  color: #1a1a1a;
  letter-spacing: .02em;
  transition: background .2s, border-color .2s, color .2s;
}

.pagination a:hover { background: #f0885a; border-color: #f0885a; color: #fff; }
.pagination .current { background: #f0885a; border-color: #f0885a; color: #fff; }

/* ===================================================
   SIDE / JOA NATIONAL BANNER
   =================================================== */
.joa-banner {
  background: #fff;
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid #e8e8e8;
}

.joa-banner a { display: inline-block; }
.joa-banner img { max-width: 320px; border-radius: .25rem; margin: 0 auto; }
.joa-banner p { margin-top: .75rem; font-size: .875rem; color: #999; }

/* ===================================================
   PAGE HEADER (breadcrumb pages)
   =================================================== */
.page-header {
  background: #fff;
  padding: 2.25rem 0 2rem;
  border-bottom: 1px solid #e8e8e8;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: .5rem;
  letter-spacing: -.02em;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  list-style: none;
  font-size: .78rem;
  color: #aaa;
  letter-spacing: .02em;
}

.breadcrumb li + li::before { content: '/'; margin-right: .25rem; color: #ccc; }
.breadcrumb li a { color: #f0885a; }
.breadcrumb li a:hover { text-decoration: underline; }

/* ===================================================
   POST / ARTICLE PAGE
   =================================================== */
.post-wrapper {
  padding: 3.5rem 0 5rem;
}

.post-inner {
  max-width: 800px;
  margin: 0 auto;
}

.post-header { margin-bottom: 2.25rem; }

.post-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .825rem;
  color: #aaa;
  margin-bottom: 1.75rem;
}

.post-featured { width: 100%; border-radius: .25rem; margin-bottom: 2.5rem; }

/* Post content */
.post-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.25rem 0 .85rem;
  color: #1a1a1a;
  padding-left: .9rem;
  border-left: 3px solid #f0885a;
}

.post-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 .75rem;
  color: #333;
  padding-bottom: .4rem;
  border-bottom: 1px solid #e8e8e8;
}

.post-content p {
  margin-bottom: 1.25rem;
  color: #333;
  line-height: 1.85;
}

.post-content ul,
.post-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
  color: #333;
}

.post-content ul { list-style: none; }

.post-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .75rem;
  line-height: 1.75;
}

.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .65em;
  width: 6px; height: 6px;
  background: #f0885a;
  border-radius: 50%;
}

.post-content ol { list-style-type: decimal; }
.post-content ol li { margin-bottom: .75rem; line-height: 1.75; }

.post-content a { color: #f0885a; border-bottom: 1px solid transparent; transition: border-color .2s; }
.post-content a:hover { border-bottom-color: #f0885a; }

.post-content img { border-radius: .25rem; margin: 1rem 0; }

.post-content blockquote {
  padding: .75rem 1rem .75rem 1.25rem;
  border-left: 3px solid #f0885a;
  background: #fff7f4;
  color: #555;
  margin: 1.5rem 0;
}

.post-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; }
.post-content th, .post-content td { border: 1px solid #e8e8e8; padding: .6rem .75rem; }
.post-content th { background: #fafafa; font-weight: 700; }

/* Info box */
.info-box {
  background: #fff7f4;
  border: 1px solid #f0885a;
  border-radius: .25rem;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.info-box dt { font-weight: 700; color: #f0885a; margin-bottom: .25rem; }
.info-box dd { color: #333; margin-bottom: .75rem; padding-left: .5rem; }
.info-box dd:last-child { margin-bottom: 0; }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #f0885a;
  font-size: .875rem;
  margin-top: 2.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

.back-link:hover { border-bottom-color: #f0885a; }
.back-link::before { content: '←'; }

/* ===================================================
   ABOUT PAGE
   =================================================== */
.about-wrapper { padding: 3.5rem 0 5rem; }

.about-content { max-width: 800px; margin: 0 auto; }

/* ===================================================
   FOOTER / CONTACT
   =================================================== */
.site-footer {
  background: #fff;
  color: #333;
  padding: 4rem 0 0;
  border-top: 1px solid #e8e8e8;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.footer-col {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  padding: 1.5rem 1.75rem;
}

.footer-col h3 {
  font-size: .9rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid #f0885a;
  letter-spacing: .04em;
}

.footer-col address,
.footer-col p {
  font-size: .975rem;
  line-height: 2;
  font-style: normal;
  color: #666;
}

.footer-col a { color: #f0885a; transition: color .2s; }
.footer-col a:hover { color: #c2623a; }

.badge-closed {
  display: block;
  background: #fbbf24;
  color: #78350f;
  font-size: .875rem;
  font-weight: 700;
  padding: .75rem 1rem;
  text-align: center;
  margin-top: .25rem;
  letter-spacing: .04em;
}

.footer-bottom {
  border-top: 1px solid #e8e8e8;
  padding: 1.5rem 0;
  text-align: center;
  font-size: .78rem;
  color: #aaa;
  letter-spacing: .04em;
}

/* Scroll margin */
@media (min-width: 768px) { [id] { scroll-margin-top: 80px; } }
@media (max-width: 767px) { [id] { scroll-margin-top: 64px; } }

/* ===================================================
   INTERMEDIATE NAV (769px – 1069px): icon-only header nav
   =================================================== */
@media (min-width: 769px) and (max-width: 1069px) {
  .nav-list > li > a:not(.contact-button) {
    flex-direction: column;
    padding: 0.4rem 0.6rem;
    gap: 0;
  }
  .nav-list > li > a:not(.contact-button) i {
    display: block;
    font-size: 1.25rem;
  }
  .nav-list > li > a:not(.contact-button) .nav-text {
    display: block;
    font-size: 0.6rem;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0;
    margin-top: 0.2rem;
  }
  .nav-list > li > a:not(.contact-button)::after {
    left: 0.25rem;
    right: 0.25rem;
    bottom: -2px;
  }

  .header-inner { height: 86px; }
  .header-logo img { height: 66px; }

  .nav-list { gap: 0; }
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
  .site-nav { display: flex; }
  .nav-list > li { display: none; }
  .nav-list > li:last-child { display: flex; }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 300;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #e8e8e8;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    font-size: 0.65rem;
    color: #999;
    gap: 0.25rem;
    transition: color 0.2s;
  }

  .bottom-nav-item i { font-size: 1.1rem; }
  .bottom-nav-item span { line-height: 1.2; text-align: center; }
  .bottom-nav-item.active { color: #f0885a; }
  .bottom-nav-item:hover { color: #f0885a; }

  body { padding-bottom: 60px; }

  .hero .hero-pc { display: none; }
  .hero .hero-sp { display: block; }

  .header-inner { height: 86px; }
  .header-logo img { height: 66px; }

  .news-list { grid-template-columns: 1fr; gap: 1.25rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1rem; }

  .page-title { font-size: 1.5rem; }
  .post-title { font-size: 1.35rem; }
  .section-heading { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  .news-card-meta { gap: .35rem; }
  .pagination a, .pagination span { min-width: 36px; height: 36px; }
}

/* ===================================================
   CONTACT BUTTON
   =================================================== */
.contact-button,
.nav-list li .contact-button,
.mobile-nav li .contact-button {
  display: inline-block;
  background: #f0885a;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 1rem;
  white-space: nowrap;
  border-bottom: none;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  transform: scale(0.9);
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.contact-button:hover,
.nav-list li .contact-button:hover,
.mobile-nav li .contact-button:hover {
  background: #ea580c;
  color: #fff;
}

@media (min-width: 1070px) {
  .contact-button,
  .nav-list li .contact-button,
  .mobile-nav li .contact-button {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    box-shadow: none;
    transform: scale(1);
  }
}

/* ===================================================
   HOMEPAGE
   =================================================== */

body.page-home {
  background: #faf8f5;
}

/* Hero: gradient fade into cream background */
.hero-home {
  position: relative;
}

.hero-home::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #faf8f5);
  pointer-events: none;
}

/* Mission strip */
.mission-strip {
  padding: 4rem 0;
  background: linear-gradient(135deg, #fff9f6 0%, #fdf2ec 60%, #fff7f0 100%);
  border-top: 1px solid #f5d4c0;
  border-bottom: 1px solid #f5d4c0;
}

.mission-inner {
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
}

.mission-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #f0885a;
  margin-bottom: 1.5rem;
  padding: 0.3rem 1.1rem;
  border: 1px solid #f0885a;
  border-radius: 9999px;
}

.mission-text {
  font-family: 'Shippori Mincho B1', 'ヒラギノ明朝 Pro W3', 'Hiragino Mincho Pro', 'MS Mincho', serif;
  font-size: 1.25rem;
  line-height: 2.15;
  color: #2a2520;
  font-weight: 400;
  margin-bottom: 2rem;
}

.mission-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f0885a;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.75rem;
  border: 2px solid #f0885a;
  border-radius: 9999px;
  transition: background 0.22s, color 0.22s;
}

.mission-link::after { content: '→'; margin-left: 0.25rem; }

.mission-link:hover {
  background: #f0885a;
  color: #fff;
}

/* Quick links */
.quick-links-section {
  padding: 3rem 0 0.5rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.75rem 1rem;
  background: #fff;
  border: 1px solid #ebe9e5;
  border-radius: 8px;
  text-align: center;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.quick-link-card:hover {
  border-color: #f0885a;
  box-shadow: 0 8px 28px rgba(240, 136, 90, 0.13);
  transform: translateY(-3px);
}

.quick-link-icon {
  width: 52px;
  height: 52px;
  background: #fff7f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #f0885a;
  transition: background 0.25s, color 0.25s;
}

.quick-link-card:hover .quick-link-icon {
  background: #f0885a;
  color: #fff;
}

.quick-link-label {
  font-size: 0.975rem;
  font-weight: 700;
  color: #2a2520;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

/* Section header: heading + view-all link inline */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-header-row .section-heading {
  margin-bottom: 0;
}

.view-all-link {
  font-size: 0.825rem;
  color: #f0885a;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  white-space: nowrap;
}

.view-all-link:hover { border-bottom-color: #f0885a; }

/* Homepage news section */
body.page-home .news-section {
  background: transparent;
  padding: 3rem 0 4rem;
}

body.page-home .news-card {
  background: #fff;
  border-radius: 8px;
  border-color: #ebe9e5;
}

/* Featured layout: single wide horizontal card */
.news-list--featured {
  grid-template-columns: 1fr;
}

.news-list--featured .news-card {
  flex-direction: row;
  max-width: 680px;
}

.news-list--featured .news-card-thumb {
  width: 260px;
  flex-shrink: 0;
}

.news-list--featured .news-card-thumb img {
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.news-list--featured .news-card-body {
  padding: 2rem;
  justify-content: center;
}

.news-list--featured .news-card-title {
  font-size: 1.05rem;
  margin-top: 0.3rem;
}

.news-list--featured .news-card-excerpt {
  -webkit-line-clamp: 3;
  margin-top: 0.3rem;
}

/* JOA Banner redesign (homepage) */
body.page-home .joa-banner {
  background: #faf8f5;
  border-top: 1px solid #ebe9e5;
  padding: 4rem 0;
  text-align: left;
}

.joa-banner-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.joa-banner-text { flex: 1; }

.joa-banner-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f0885a;
  margin-bottom: 0.5rem;
}

.joa-banner-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2a2520;
  margin-bottom: 1.1rem;
  line-height: 1.55;
}

.joa-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: #f0885a;
  font-weight: 700;
  border-bottom: 1px solid #f0885a;
  padding-bottom: 0.1rem;
  transition: opacity 0.2s;
}

.joa-banner-link:hover { opacity: 0.7; }

.joa-banner-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}

.joa-banner-img-link img {
  max-width: 300px;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.3s;
}

.joa-banner-img-link:hover img {
  opacity: 0.88;
  transform: scale(1.02);
}

/* Responsive: Homepage */
@media (max-width: 768px) {
  .mission-text { font-size: 1rem; line-height: 2; }

  .section-header-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .news-list--featured .news-card { flex-direction: column; max-width: 100%; }
  .news-list--featured .news-card-thumb { width: 100%; }
  .news-list--featured .news-card-thumb img { height: 200px; }
  .news-list--featured .news-card-body { padding: 1.25rem; }

  body.page-home .joa-banner { text-align: center; }
  .joa-banner-inner { flex-direction: column; gap: 1.5rem; }
  .joa-banner-kicker { text-align: center; }
  .joa-banner-img-link img { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .quick-links-grid { gap: 0.75rem; }
  .quick-link-card { padding: 1.25rem 0.75rem; gap: 0.65rem; }
  .quick-link-icon { width: 44px; height: 44px; font-size: 1rem; }
  .quick-link-label { font-size: 0.9rem; }
  .mission-text { font-size: 0.95rem; }
}

/* ===================================================
   ARCHIVE YEAR GRID
   =================================================== */
.archive-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 2rem 0;
}

.archive-year-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.75rem 3.5rem 1.75rem 2rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.archive-year-card:hover {
  border-color: #f0885a;
  box-shadow: 0 4px 20px rgba(240, 136, 90, 0.15);
  transform: translateY(-2px);
}

.archive-year-label {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
}

.archive-year-range {
  font-size: 0.82rem;
  color: #999;
}

.archive-year-count {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f0885a;
  margin-top: 0.2rem;
}

.archive-year-arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-size: 1rem;
  transition: color 0.2s, right 0.2s;
}

.archive-year-card:hover .archive-year-arrow {
  color: #f0885a;
  right: 1rem;
}

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 400;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0885a;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover { background: #ea580c; }

@media (max-width: 768px) {
  .back-to-top {
    right: 0.75rem;
    bottom: calc(60px + env(safe-area-inset-bottom) + 0.75rem);
    width: 40px;
    height: 40px;
  }
}
