:root {
  color-scheme: light;
  --ink: #111318;
  --muted: #667085;
  --line: rgba(17, 19, 24, .1);
  --panel: rgba(255, 255, 255, .78);
  --bg: #f5f7fb;
  --blue: #0071e3;
  --green: #18a058;
  --rose: #d92d7a;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 113, 227, .14), transparent 28rem),
    radial-gradient(circle at 86% 16%, rgba(24, 160, 88, .12), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #ffffff 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 54px);
  backdrop-filter: saturate(180%) blur(22px);
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid var(--line);
}
.topbar .adsbygoogle,
.topbar ins,
.topbar iframe[id^="google_ads_iframe"] {
  display: none !important;
  visibility: hidden !important;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.brand img { border-radius: 9px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1d2939;
  transition: transform .2s ease, opacity .2s ease;
}
.topbar.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.topbar.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav a { white-space: nowrap; }
nav a, .quick-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #333945;
  font-size: 14px;
  transition: background .2s, color .2s, transform .2s;
}
nav a:hover, .quick-links a:hover { background: rgba(0, 113, 227, .09); color: var(--blue); transform: translateY(-1px); }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}
.narrow { width: min(840px, calc(100% - 32px)); }

.hero {
  min-height: clamp(520px, 72vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(28px, 6vw, 80px) 0;
}
.hero-copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}
h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: .98;
  letter-spacing: 0;
}
.detail-hero h1 {
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.12;
}
.detail-hero .summary {
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.65;
}
.summary {
  margin: 24px 0 0;
  max-width: 680px;
  color: #46505f;
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: #1d2939;
  font-weight: 700;
}
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.stats div {
  min-width: 132px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(17, 19, 24, .07);
}
.stats strong { display: block; font-size: 22px; }
.stats span { color: var(--muted); font-size: 13px; }
.hero-visual {
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(232,239,250,.88));
  box-shadow: 0 34px 90px rgba(17, 19, 24, .14);
}
.hero-visual img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.detail-hero .hero-visual {
  display: grid;
  place-items: center;
  background: #f7f9fc;
}
.detail-hero .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.glass-orchard {
  height: 100%;
  min-height: 420px;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(0,113,227,.13), transparent 42%),
    linear-gradient(315deg, rgba(24,160,88,.13), transparent 44%),
    #fff;
}
.glass-orchard span { color: var(--muted); font-weight: 700; }
.glass-orchard strong { display: block; font-size: clamp(54px, 9vw, 112px); line-height: 1; }

.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -18px 0 28px;
}
.quick-links a {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
  box-shadow: 0 12px 28px rgba(17,19,24,.05);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.activity-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .83);
  box-shadow: 0 18px 45px rgba(17, 19, 24, .08);
}
.cover { display: block; aspect-ratio: 16 / 10; background: #f0f3f8; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.activity-card:hover .cover img { transform: scale(1.035); }
.cover-fallback { height: 100%; display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.card-body { padding: 18px; }
.date, .place, .rank-row em, .side-list span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.activity-card h2 {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.chips span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #155eef;
  background: rgba(0, 113, 227, .09);
  font-size: 12px;
  font-weight: 700;
}

.ranking {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.rank-row a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}
.rank { color: var(--blue); font-size: 28px; font-weight: 800; text-align: center; }
.rank-row strong { display: block; margin-bottom: 4px; }
.rank-row em { font-style: normal; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.article, .side-list, .empty, .search-card, .submit-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 18px 45px rgba(17,19,24,.07);
}
.article { padding: clamp(20px, 4vw, 42px); }
.meta-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}
.meta-panel div { padding: 14px; border-radius: 8px; background: #f5f7fb; }
.meta-panel span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.meta-panel a {
  color: var(--blue);
}
.share-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.share-panel > span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #1d2939;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: rgba(0, 113, 227, .32);
  color: var(--blue);
  outline: none;
}

.share-button.copied {
  border-color: rgba(24, 160, 88, .32);
  color: #05603a;
  background: rgba(24, 160, 88, .1);
}
.content { line-height: 1.85; color: #27303d; }
.content img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  margin: 20px auto;
}
.content iframe { width: 100%; max-width: 100%; border: 0; border-radius: 8px; }
.policy-page { padding-top: 58px; }
.policy-article {
  font-size: 17px;
  line-height: 1.85;
}
.policy-article h1 {
  margin: 0 0 28px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}
.policy-article h2,
.policy-article h3 {
  margin: 34px 0 12px;
  font-size: 22px;
  line-height: 1.35;
}
.policy-article p { margin: 0 0 18px; color: #27303d; }
.policy-article ul {
  margin: 0 0 24px;
  padding-left: 1.35em;
  color: #27303d;
}
.policy-article li { margin: 8px 0; }
.policy-article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 34px 0 18px;
}
.policy-article a { color: var(--blue); font-weight: 700; }
.side-list { padding: 18px; position: sticky; top: 82px; }
.side-list h2 { margin: 0 0 12px; font-size: 18px; }
.side-list a { display: block; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 700; }
.side-list span { display: block; margin-top: 4px; font-weight: 400; }

.hinami-page {
  padding-top: 58px;
}

.hinami-article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 22px 60px rgba(17,19,24,.08);
}

.hinami-cover {
  margin: 0;
  background: #f7f9fc;
}

.hinami-cover img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  margin: 0 auto;
}

.hinami-article > .eyebrow,
.hinami-article > h1,
.hinami-article > .lead,
.hinami-body {
  width: min(720px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.hinami-article > .eyebrow {
  margin-top: 42px;
}

.hinami-article > h1 {
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.02;
}

.hinami-article > .lead {
  margin-top: 20px;
  color: #475467;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

.hinami-body {
  padding: 20px 0 54px;
  color: #27303d;
  font-size: 17px;
  line-height: 1.9;
}

.hinami-body h2 {
  margin: 42px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
}

.hinami-body p {
  margin: 0 0 16px;
}

.hinami-photo-grid {
  width: min(960px, 100%);
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hinami-photo-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  overflow: hidden;
}

.hinami-photo-grid img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  cursor: zoom-in;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 19, 24, .86);
}

.lightbox img {
  max-width: min(100%, 1180px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
}

.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.search-card { padding: 20px; }
.search-card strong, .search-card span, .search-card em { display: block; }
.search-card strong { font-size: 22px; margin-bottom: 10px; }
.search-card span { color: #475467; line-height: 1.55; }
.search-card em { margin-top: 16px; color: var(--green); font-style: normal; font-weight: 800; }

.empty { padding: 28px; color: var(--muted); }
.submit-form { display: grid; gap: 12px; padding: 22px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
}

.button.danger {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-header h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
}

.admin-header p:not(.eyebrow),
.admin-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.admin-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(24, 160, 88, .22);
  border-radius: 8px;
  background: rgba(24, 160, 88, .1);
  color: #05603a;
  font-weight: 700;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-actions form {
  margin: 0;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 45px rgba(17,19,24,.07);
  padding: clamp(18px, 3vw, 28px);
}

.admin-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: #344054;
  background: #f8fafc;
  font-weight: 800;
}

td code {
  white-space: nowrap;
  color: #155eef;
}

.muted-cell {
  color: var(--muted);
}
textarea { min-height: 140px; resize: vertical; }

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer a { margin-right: 12px; color: #344054; }

@media (max-width: 920px) {
  .hero, .detail-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 44px; }
  .activity-grid, .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-list { position: static; }
}

@media (max-width: 640px) {
  .topbar {
    align-items: center;
    grid-template-columns: 1fr 44px;
    gap: 12px;
  }
  .menu-toggle { display: inline-flex; }
  nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    justify-content: flex-start;
    padding-top: 4px;
  }
  .topbar.menu-open nav,
  nav.open { display: flex; }
  nav a {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .7);
  }
  h1 { font-size: 42px; }
  .summary { font-size: 18px; }
  .hero-visual, .hero-visual img, .glass-orchard { min-height: 280px; }
  .activity-grid, .search-grid, .meta-panel { grid-template-columns: 1fr; }
  .hinami-photo-grid { grid-template-columns: 1fr; }
  .rank-row a { grid-template-columns: 44px 1fr; }
}
