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

:root {
  --ink: #171f26;
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --bg-a: #e2eef8;
  --bg-b: #f6e9ef;
  --up: -5px -5px 14px rgba(255, 255, 255, 0.92), 5px 6px 16px rgba(23, 31, 38, 0.16);
  --up-sm: -3px -3px 8px rgba(255, 255, 255, 0.9), 3px 4px 9px rgba(23, 31, 38, 0.14);
  --in: inset -3px -3px 8px rgba(255, 255, 255, 0.95), inset 3px 3px 9px rgba(23, 31, 38, 0.15);
  --r: 12px;
  --card-r: 4px;
  --muted: #3f4e5a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 44px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background: linear-gradient(155deg, var(--bg-a), var(--bg-b)) fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0.6rem 0;
}

h2 {
  font-size: 1.42rem;
  line-height: 1.35;
  margin: 1.4rem 0 0.6rem;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.4;
  margin: 1.1rem 0 0.5rem;
}

figure {
  margin: 1rem 0;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.topline {
  position: fixed;
  inset: 0 0 auto;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, #ecf5fc, #dfecf8);
  box-shadow: 0 3px 10px rgba(23, 31, 38, 0.08);
  z-index: 90;
}

.pulse {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(245, 224, 232, 0.65), var(--up-sm);
}

.topline-brand {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-btn {
  display: none;
}

.rail {
  position: fixed;
  top: 44px;
  left: 0;
  bottom: 0;
  width: 232px;
  padding: 22px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  background: linear-gradient(155deg, #e8f2fb, #cfe4f6);
  box-shadow: 6px 0 18px rgba(23, 31, 38, 0.1);
  border-radius: 0 20px 20px 0;
  z-index: 70;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  min-height: 44px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: var(--up-sm);
  background: linear-gradient(145deg, #eef6fd, #d8e9f8);
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.brand-dot {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #fbeaf1, #eed3de);
  box-shadow: var(--up-sm);
}

.rail nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r);
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
  background: linear-gradient(145deg, #ecf5fd, #d6e8f8);
  box-shadow: var(--up-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rail nav a:hover {
  transform: translateY(-1px);
}

.rail nav a:active {
  transform: scale(0.97);
  box-shadow: var(--in);
}

.rail nav a[aria-current] {
  background: linear-gradient(145deg, #e1effb, #f8eaf0);
  box-shadow: var(--in);
  font-weight: 600;
}

.ico {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  background: var(--pink);
  box-shadow: var(--up-sm);
}

main {
  margin-left: 232px;
  max-width: 1020px;
  padding: 26px clamp(18px, 4vw, 52px) 20px;
}

main > article {
  scroll-margin-top: 64px;
}

.hero {
  position: relative;
  min-height: 45vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 26px 0 34px;
  overflow: hidden;
}

.shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--card-r);
  background: linear-gradient(145deg, #f4fafe, #c9e0f4);
  box-shadow: var(--up);
  z-index: 2;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-a {
  left: 0;
  top: 8%;
  width: 31%;
  aspect-ratio: 4 / 3;
  transform: rotate(-3deg);
}

.shot-b {
  left: 17%;
  bottom: 6%;
  width: 34%;
  aspect-ratio: 3 / 2;
  transform: rotate(2deg);
  z-index: 3;
}

.shot-blank {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 96px;
  background: linear-gradient(145deg, #f9eaf1, #c8e0f4);
}

.hero-copy {
  position: relative;
  grid-column: 2;
  text-align: right;
  z-index: 4;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-sub {
  margin: 0.7rem 0 0 auto;
  max-width: 38ch;
  font-size: 1rem;
  color: var(--muted);
}

.hero-ghost {
  position: absolute;
  right: 0;
  bottom: -4px;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(44px, 10vw, 140px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  opacity: 0.55;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.index {
  padding: 4px 0 22px;
}

.idx-title,
.foot-title {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.idx-title span,
.foot-title span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r);
  background: linear-gradient(145deg, #eff7fd, #d5e7f7);
  box-shadow: var(--up-sm);
}

.idx-card {
  padding: 14px 16px;
  border-radius: var(--card-r);
  background: linear-gradient(150deg, #fceef4, #efd7e2);
  box-shadow: var(--up);
}

.idx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.idx-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--r);
  font-size: 0.94rem;
  line-height: 1.3;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--up-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.idx-list a:hover {
  transform: translateY(-1px);
}

.idx-list a:active {
  transform: scale(0.98);
  box-shadow: var(--in);
}

main > article:not(.hero):not(.index) {
  margin-bottom: 18px;
  padding: 22px 22px 26px;
  border-radius: var(--card-r);
  background: linear-gradient(160deg, #eef6fd, #dfeaf6);
  box-shadow: var(--up);
}

main > article:not(.hero):not(.index) > :first-child {
  margin-top: 0;
}

main > article:not(.hero):not(.index) > :last-child {
  margin-bottom: 0;
}

main > article:not(.hero):not(.index) a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

main > article:not(.hero):not(.index) ul {
  padding-left: 1.2rem;
}

.foot {
  margin-left: 232px;
  max-width: 1020px;
  padding: 10px clamp(18px, 4vw, 52px) 36px;
}

.foot-form {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--card-r);
  background: linear-gradient(150deg, #fceff5, #f0d8e3);
  box-shadow: var(--up);
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sub input {
  flex: 1 1 200px;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #e4eef8;
  box-shadow: var(--in);
}

.sub button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  background: linear-gradient(145deg, #fdeef5, #efd1de);
  box-shadow: var(--up);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sub button:hover {
  transform: translateY(-1px);
}

.sub button:active {
  transform: scale(0.96);
  box-shadow: var(--in);
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 14px;
}

.foot-meta address {
  font-style: normal;
  font-weight: 600;
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.9rem;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.foot-links a:hover {
  border-bottom-color: var(--ink);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 31, 38, 0.1);
}

.foot-base p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.foot-top {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  font-size: 0.84rem;
}

.foot-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-top a:hover {
  border-bottom-color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 880px) {
  body {
    padding-top: 0;
  }

  .topline {
    position: sticky;
    top: 0;
    height: auto;
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-left: auto;
    padding: 0 16px;
    border: 0;
    border-radius: var(--r);
    font: inherit;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    background: linear-gradient(145deg, #fdeef5, #efd1de);
    box-shadow: var(--up);
  }

  .menu-btn:active {
    transform: scale(0.96);
    box-shadow: var(--in);
  }

  .rail {
    position: static;
    display: none;
    width: auto;
    top: auto;
    bottom: auto;
    max-height: none;
    margin: 0 14px 10px;
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--up);
  }

  .rail.open {
    display: flex;
  }

  main {
    margin-left: 0;
    max-width: none;
    padding: 14px 14px 8px;
  }

  .foot {
    margin-left: 0;
    max-width: none;
    padding: 8px 14px 30px;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    gap: 10px;
    padding: 6px 0 18px;
    overflow: visible;
  }

  .shot-a,
  .shot-b {
    position: static;
    width: 100%;
    margin: 0;
    transform: none;
  }

  .shot-a {
    grid-row: 1;
    grid-column: 1;
  }

  .shot-b {
    grid-row: 1;
    grid-column: 2;
    margin-top: 16px;
  }

  .hero-copy {
    grid-column: 1 / -1;
    margin-top: 6px;
    text-align: left;
  }

  .hero-sub {
    margin-left: 0;
    max-width: none;
  }

  .hero-ghost {
    bottom: 0;
    font-size: clamp(42px, 12vw, 84px);
  }

  .idx-list {
    grid-template-columns: 1fr;
  }

  .foot-meta,
  .foot-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .rail nav a,
  .idx-list a,
  .sub button,
  .foot-links a {
    transition: none;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
