/*
Theme Name: SSSESG
Theme URI: https://www.sssesg.com/
Author: 優妃思數位行銷
Description: 社團法人台灣永續學協會官方網站佈景主題。手刻輕量主題，無 page builder，純 CSS。
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: sssesg
*/

/* ============================================================
   設計變數
   色票取自原 Duda 站台的實際 computed style：
     主綠 #37A300、深藍 #070066、Tiffany 青 #81D8D0、
     區塊青綠 rgba(0,134,115,.74)、深灰 #282E34
   ============================================================ */
:root {
  --green:        #37a300;
  --green-dark:   #2b8000;
  --teal:         #008673;
  --teal-soft:    rgba(0, 134, 115, .74);
  --tiffany:      #81d8d0;
  --navy:         #070066;
  --ink:          #282e34;
  --ink-soft:     #5b6570;
  --line:         #e3e7ea;
  --paper:        #ffffff;
  --paper-alt:    #f7f9f8;
  --mint:         #eaf5f2;

  --wrap:         1200px;
  --wrap-narrow:  860px;
  --radius:       14px;
  --shadow:       0 2px 8px rgba(20, 40, 35, .06), 0 12px 32px rgba(20, 40, 35, .07);

  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system,
          BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================================
   基礎
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; font-weight: 700; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p  { margin: 0 0 1.15em; }

/* 跳至主要內容（鍵盤與螢幕閱讀器） */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .8em 1.4em;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--paper-alt); }
.section-mint { background: var(--mint); }

.eyebrow {
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin-bottom: .8rem;
}
.lead { font-size: 1.1rem; color: var(--ink-soft); }
.center { text-align: center; }

/* ============================================================
   按鈕
   ============================================================ */
.btn {
  display: inline-block;
  padding: .85em 2.2em;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--teal);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--green); border-color: var(--green); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: #fff; color: var(--teal); border-color: #fff; }

/* ============================================================
   頁首
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}
.site-logo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.site-logo img { height: 46px; width: auto; }
.site-logo span { font-weight: 700; font-size: 1.02rem; color: var(--ink); letter-spacing: .02em; }
.site-logo:hover { text-decoration: none; }

.nav-toggle {
  margin-left: auto; display: none;
  background: none; border: 0; cursor: pointer;
  padding: .5rem; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: .55em 1em;
  color: var(--ink); font-weight: 500; font-size: .98rem;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--mint); color: var(--teal); text-decoration: none; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--teal); font-weight: 700; }

/* 子選單 */
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .4rem;
  display: block; flex-direction: column; gap: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { padding: .6em .9em; font-size: .94rem; }

.header-contact { display: flex; gap: .4rem; align-items: center; flex-shrink: 0; }
.header-contact a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; color: var(--teal); background: var(--mint);
}
.header-contact a:hover { background: var(--teal); color: #fff; }
.header-contact svg { width: 19px; height: 19px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-contact { display: none; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .6rem 1.25rem 1.2rem;
    display: none; box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: .8em .4em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 0 1.2rem; min-width: 0;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(430px, 74vh, 660px);
  display: grid; place-items: center;
  text-align: center; color: #fff;
  padding: 5rem 0;
  background: var(--ink) center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,40,32,.42) 0%, rgba(12,40,32,.30) 45%, rgba(12,40,32,.55) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  margin-bottom: 1.1rem;
}
.hero .hero-sub {
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  line-height: 2.05; font-weight: 500;
  text-shadow: 0 1px 14px rgba(0,0,0,.4);
  max-width: 46rem; margin: 0 auto 2rem;
}
.hero-sm { min-height: clamp(260px, 40vh, 380px); padding: 4rem 0; }
.hero-sm h1 { margin-bottom: 0; }

/* 活動頁的 hero 文案（比照原站 2024／2025 兩頁的層次） */
.hero-eyebrow {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700; letter-spacing: .04em;
  margin: 0 0 .5rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.hero-kicker {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 700; letter-spacing: .06em;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.hero-rule {
  width: min(560px, 70%);
  margin: 1.4rem auto;
  border: 0; border-top: 2px solid rgba(255,255,255,.75);
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600; letter-spacing: .04em;
  margin: 1rem 0 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
/* Hero 裡的長段落（about 頁的本會宗旨） */
.hero-body {
  max-width: 52rem; margin: 1.4rem auto 0;
  font-size: clamp(.98rem, 1.6vw, 1.12rem);
  line-height: 2.05; font-weight: 500;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
/* 有副標時標題不用再留下方空隙 */
.hero h1:last-child { margin-bottom: 0; }

/* Hero 背景輪播（原站 2024 頁是三張、每 3 秒交叉淡入）
   每張一層，疊在 .hero::after 遮罩之下。第一張預設可見，
   沒有 JS 也看得到，不會變成空白區塊。 */
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  /* 不自動輪播時只留第一張，避免閃動 */
  .hero-slide { transition: none; }
  .hero-slide:not(:first-child) { display: none; }
  .hero-slide:first-child { opacity: 1; }
}
.hero-lg { min-height: clamp(480px, 78vh, 740px); }

/* Hero 背景影片（原站 about 頁）。
   影片本身 3.9MB，行動網路上不該硬灌，JS 會在窄螢幕或省流量模式改用封面圖。 */
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  object-fit: cover;
  pointer-events: none;
}
/* 影片停用時退回封面圖 */
.hero-video-wrap.is-poster { background: center/cover no-repeat; }
.hero-video-wrap.is-poster .hero-video { display: none; }

/* ============================================================
   服務項目
   ============================================================ */
.service-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.5rem;
}
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; box-shadow: var(--shadow);
}
.service-card h3 {
  color: var(--teal); padding-bottom: .7rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--mint);
}
.service-card ul { list-style: none; margin: 0; padding: 0; }
.service-card li {
  position: relative; padding-left: 1.7rem; margin-bottom: .55rem;
  font-size: .97rem; color: var(--ink-soft);
}
.service-card li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

/* 四項特色 */
.feature-row {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 3rem; text-align: center;
}
.feature-row .num {
  width: 62px; height: 62px; margin: 0 auto .9rem;
  border: 2px solid var(--tiffany); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--teal); font-weight: 700; font-size: 1.1rem;
}
.feature-row h3 { font-size: 1.05rem; margin: 0; }

/* ============================================================
   使命區塊（青綠底）
   ============================================================ */
.mission { background: var(--teal-soft); color: #fff; }
.mission-inner {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  grid-template-columns: 1.05fr .95fr;
}
.mission h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.4; }
.mission p { color: rgba(255,255,255,.94); margin-bottom: 0; }
.mission img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
@media (max-width: 820px) { .mission-inner { grid-template-columns: 1fr; } }

/* ============================================================
   引言
   ============================================================ */
.quote-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2.5rem;
}
.quote {
  background: #fff; border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.8rem 1.7rem; box-shadow: var(--shadow);
}
.quote blockquote {
  margin: 0 0 1rem; font-size: 1.04rem; line-height: 1.8;
  color: var(--ink); font-weight: 500;
}
.quote cite { font-style: normal; font-size: .9rem; color: var(--ink-soft); }

/* ============================================================
   輪播
   ------------------------------------------------------------
   原站用 Duda 的 flexslider（首頁三則引言、2024 頁兩張活動照）。
   這裡自己刻，不裝套件：外層 overflow hidden、內層 track 位移。
   沒有 JS 也能看到第一張，不會整塊消失。
   ============================================================ */
.carousel { position: relative; }

.carousel-viewport { overflow: hidden; border-radius: var(--radius); }

.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.carousel-slide img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
}

/* 引言型的滑片：置中、留白 */
.carousel-quote {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
}
.carousel-quote blockquote {
  margin: 0 0 1.2rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.75; font-weight: 500; color: var(--ink);
}
.carousel-quote cite { font-style: normal; color: var(--ink-soft); font-size: .95rem; }

/* 左右按鈕 */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--teal);
  border: 1px solid var(--line); cursor: pointer;
  box-shadow: 0 4px 14px rgba(20,40,35,.14);
  transition: background .18s ease, color .18s ease;
}
.carousel-btn:hover { background: var(--teal); color: #fff; }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-prev { left: .7rem; }
.carousel-next { right: .7rem; }
@media (max-width: 560px) {
  .carousel-btn { width: 38px; height: 38px; }
  .carousel-prev { left: .3rem; }
  .carousel-next { right: .3rem; }
}

/* 圓點 */
.carousel-dots {
  display: flex; justify-content: center; gap: .5rem;
  margin-top: 1.1rem;
}
.carousel-dots button {
  width: 10px; height: 10px; padding: 0;
  border-radius: 50%; border: 0; cursor: pointer;
  background: var(--line);
  transition: background .18s ease, transform .18s ease;
}
.carousel-dots button:hover { background: var(--tiffany); }
.carousel-dots button[aria-current="true"] { background: var(--teal); transform: scale(1.25); }

/* 只有一張時不顯示控制項 */
.carousel[data-count="1"] .carousel-btn,
.carousel[data-count="1"] .carousel-dots { display: none; }

/* ============================================================
   理監事
   ============================================================ */
.people-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin-top: 2.5rem;
}
.person { text-align: center; }
/* 選擇器要比後面的 .entry-content img 更明確，否則圓形會被 14px 圓角蓋掉 */
.people-grid .person img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; margin-bottom: 1rem;
  background: var(--mint);
  box-shadow: 0 6px 20px rgba(20,40,35,.12);
}
.person h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.person p { font-size: .88rem; color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* ============================================================
   本會之任務（原站是七張配圖的卡片，左文右圖交錯）
   ============================================================ */
.task-cards { margin: 2.5rem 0 0; counter-reset: task; }

.task-card {
  counter-increment: task;
  display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-alt);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2.5vw, 1.9rem);
  margin-bottom: 1.4rem;
}
/* 偶數張左右對調，視覺上有節奏 */
.task-card:nth-child(even) .task-card-text { order: 2; }

.task-card-text { position: relative; padding-left: 3.2rem; }
.task-card-text::before {
  content: counter(task, decimal-leading-zero);
  position: absolute; left: 0; top: .1em;
  color: var(--green); font-weight: 700; font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.task-card-text p {
  margin: 0; font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-weight: 600; line-height: 1.75; color: var(--navy);
}
.task-card img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(20,40,35,.12);
}

@media (max-width: 700px) {
  .task-card { grid-template-columns: 1fr; }
  .task-card:nth-child(even) .task-card-text { order: 0; }
}

/* ============================================================
   議程表
   ============================================================ */
.agenda { margin-top: 2rem; }
.agenda-row {
  display: grid; grid-template-columns: 132px 1fr; gap: 1.4rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.agenda-row:last-child { border-bottom: 0; }
.agenda-time {
  color: var(--teal); font-weight: 700; font-size: .93rem;
  font-variant-numeric: tabular-nums; padding-top: .1em;
}
.agenda-title { font-weight: 600; margin: 0 0 .2rem; }
.agenda-who { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.agenda-row.is-break { background: var(--paper-alt); }
.agenda-row.is-break .agenda-title { font-weight: 500; color: var(--ink-soft); }
@media (max-width: 620px) {
  .agenda-row { grid-template-columns: 1fr; gap: .3rem; }
}

/* 活動資訊 */
.info-list { margin: 2rem 0 0; }
.info-list dt { font-weight: 700; color: var(--teal); margin-top: 1.2rem; font-size: .95rem; }
.info-list dd { margin: .3rem 0 0; color: var(--ink-soft); }

/* ============================================================
   表單
   ============================================================ */
.contact-form { margin-top: 2rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.field .req { color: #c0392b; margin-left: .2em; }
.field input, .field textarea {
  width: 100%; padding: .8em 1em;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,134,115,.14);
}
.field textarea { min-height: 150px; resize: vertical; }

.form-note { font-size: .88rem; color: var(--ink-soft); }
.form-msg { padding: 1.15rem 1.3rem; border-radius: 10px; margin-bottom: 1.5rem; }
.form-msg.ok   { background: #e8f6ef; border-left: 4px solid var(--green); }
.form-msg.err  { background: #fdecea; border-left: 4px solid #c0392b; }
.form-msg p:last-child { margin-bottom: 0; }

/* 蜜罐：給機器人填的隱藏欄位，真人看不到 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   頁尾
   ============================================================ */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.72);
  padding: 3.5rem 0 2rem; font-size: .94rem;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.13);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
/* 頁尾用 logo-white.png（原始檔就是白色），不需要濾鏡 */
.site-footer img { height: 52px; width: auto; margin-bottom: 1rem; opacity: .92; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom {
  padding-top: 1.6rem; text-align: center;
  font-size: .86rem; color: rgba(255,255,255,.5);
}

/* ============================================================
   內容頁（區塊編輯器產出的內容）
   ============================================================ */
.entry-content > * { margin-bottom: 1.15em; }
.entry-content h2 { margin-top: 2.4em; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  margin: 2em 0; padding: 1.2em 1.6em;
  border-left: 4px solid var(--green); background: var(--paper-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .7em .9em; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--paper-alt); font-weight: 700; }
.alignwide { width: min(100vw - 2.5rem, 1200px); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }

/* 表格在窄螢幕可橫向捲動，頁面本身不會橫捲 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============================================================
   回到頂端
   ============================================================ */
.to-top {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background .2s ease;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   列印
   ============================================================ */
@media print {
  .site-header, .site-footer, .to-top, .contact-form { display: none; }
  body { font-size: 12pt; }
  .hero { min-height: auto; color: #000; background: none; padding: 0 0 1rem; }
  .hero::after { display: none; }
}
