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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --soft: rgba(0, 0, 0, 0.06);
  --line: rgba(0, 0, 0, 0.16);
  --pad: clamp(1.15rem, 5vw, 4.5rem);
  --serif: "Noto Serif JP", "Songti SC", "Source Han Serif SC", serif;
  --sans: "Noto Sans JP", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.04em;
  margin: 0;
}

p {
  margin: 0 0 1.15em;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
}

.skip:focus {
  top: 0.75rem;
}

/* ---------- 顶部：品牌行 + 药丸菜单行 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 0.75rem var(--pad) 0.85rem;
}

.top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--line);
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.4vw, 2.4rem);
  letter-spacing: -0.06em;
  text-decoration: none;
  line-height: 1.1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.find {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.find input {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  min-height: 44px;
  width: clamp(8rem, 30vw, 15rem);
}

.find input:focus-visible,
.mail input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.find button,
.mail button {
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
}

.find button:hover,
.mail button:hover {
  background: var(--paper);
  color: var(--ink);
}

.pills {
  display: flex;
  gap: 0.45rem;
  padding-top: 0.7rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pills::-webkit-scrollbar {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
  background: var(--paper);
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
}

.pill:hover,
.pill:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.pn {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  gap: 1rem;
  padding: clamp(1.4rem, 5vw, 3.5rem) var(--pad) clamp(1.5rem, 5vw, 3rem);
  background: var(--ink);
  color: var(--paper);
}

.hero-bg {
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  bottom: -0.12em;
  z-index: -1;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(4.5rem, 21vw, 16rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
  color: rgba(255, 255, 255, 0.09);
  text-align: center;
  white-space: nowrap;
  will-change: transform;
  pointer-events: none;
}

.hero-h1 {
  position: relative;
  font-size: clamp(2.1rem, 8.6vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.04;
  text-align: right;
  margin: 0;
  overflow-wrap: anywhere;
}

.collage {
  position: relative;
  margin: auto 0 0;
  align-self: flex-end;
  width: min(100%, 44rem);
  height: clamp(11rem, 30vw, 22rem);
}

.shot {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
}

.shot-a {
  left: 0;
  top: 0;
  width: 54%;
  height: 76%;
  transform: rotate(-3deg);
}

.shot-b {
  right: 0;
  bottom: 0;
  width: 45%;
  height: 64%;
  transform: rotate(3deg);
  background: rgba(255, 255, 255, 0.26);
}

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

/* ---------- 正文与右侧栏 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(2.6rem, 7vw, 6rem) var(--pad) clamp(2rem, 6vw, 5rem);
}

.stream {
  min-width: 0;
}

.stream > article {
  scroll-margin-top: 8.5rem;
  padding-block: clamp(2.4rem, 6vw, 5rem);
  border-top: 2px solid var(--ink);
}

.stream > article:first-child {
  border-top: 0;
  padding-top: 0;
}

.stream h2 {
  font-size: clamp(1.7rem, 4.4vw, 3.1rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.stream h3 {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 600;
  margin: 2rem 0 0.7rem;
}

.stream hr {
  border: 0;
  border-top: 2px solid var(--ink);
  margin: 0 0 1.6rem;
}

.stream p {
  max-width: 46rem;
}

.stream ul,
.stream ol {
  padding-left: 1.35rem;
  margin: 0 0 1.3em;
}

.stream li {
  margin-bottom: 0.55em;
}

.stream figure {
  margin: 1.8rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
}

.stream img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.stream blockquote {
  margin: 1.8rem 0;
  padding: 1.3rem 1.4rem;
  border-left: 6px solid var(--ink);
  background: var(--soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
}

.stream blockquote p:last-child {
  margin-bottom: 0;
}

.stream table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 1rem;
}

.stream th,
.stream td {
  border-bottom: 1.5px solid var(--line);
  padding: 0.7rem 0.6rem;
  text-align: left;
}

.stream a {
  text-underline-offset: 4px;
}

.rail {
  position: sticky;
  top: 9.5rem;
  align-self: start;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.4rem;
}

.rail h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rail hr {
  border: 0;
  border-top: 2px solid var(--ink);
  margin: 0.6rem 0 0.9rem;
}

.rail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.35rem 0;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
  border-bottom: 1px dashed var(--line);
}

.rail-list a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.rn {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.55;
  flex: 0 0 auto;
}

.totop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  width: 100%;
}

.totop:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(2rem, 6vw, 5rem);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) 1.4rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
}

.f-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin: 0 0 1.3rem;
}

.totop-inv {
  width: auto;
  color: var(--paper);
  border-color: var(--paper);
}

.totop-inv:hover {
  background: var(--paper);
  color: var(--ink);
}

.foot h2 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.foot hr {
  border: 0;
  border-top: 2px solid var(--paper);
  margin: 0.6rem 0 1rem;
  opacity: 0.6;
}

.foot dl {
  margin: 0;
}

.foot dt {
  margin-bottom: 0.15rem;
}

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

.foot dt a:hover,
.legal-links a:hover {
  border-bottom-color: var(--paper);
}

.mail {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 18rem;
}

.mail label {
  font-size: 1rem;
}

.mail input {
  font: inherit;
  font-size: 1rem;
  color: var(--paper);
  background: transparent;
  border: 1.5px solid var(--paper);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  min-height: 44px;
}

.mail input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.mail button {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.mail button:hover {
  background: transparent;
  color: var(--paper);
}

.f-legal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  font-size: 0.95rem;
}

.copy {
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

/* ---------- 动效 ---------- */
.js [data-rv] {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}

.js [data-rv].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-rv] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
    order: -1;
    margin-bottom: 0.4rem;
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
  .f-mark-col {
    grid-column: 1 / -1;
  }
  .f-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16.5px;
    line-height: 1.8;
  }
  .top {
    padding-bottom: 0.6rem;
  }
  .top-line {
    gap: 0.6rem;
  }
  .find input {
    width: 8.5rem;
  }
  .hero {
    min-height: 92vh;
    min-height: 92svh;
  }
  .hero-h1 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }
  .collage {
    height: clamp(9.5rem, 44vw, 14rem);
    width: 100%;
  }
  .foot {
    grid-template-columns: 1fr;
  }
  .stream > article {
    scroll-margin-top: 10rem;
  }
}

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