:root {
  --paper: #fbfaf6;
  --white: #ffffff;
  --ink: #141b1d;
  --muted: #687173;
  --line: rgba(20, 27, 29, 0.14);
  --line-strong: rgba(20, 27, 29, 0.24);
  --trust: #163f46;
  --accent: #b58b45;
  --radius: 8px;
  font-family: Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  transform: translate(-50%, -160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 224px;
  height: 56px;
  overflow: hidden;
  background: var(--white);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 180;
  width: var(--progress, 0%);
  height: 3px;
  background: var(--ink);
}

main {
  min-height: 100vh;
}

.message-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 78px);
  margin: 0 auto;
  padding: 78px 0 80px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--trust);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 630px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 700;
  line-height: 2;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 900;
  border-radius: 999px;
}

.primary-link {
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
}

.ghost-link {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.portrait-stage {
  margin: 0;
}

.portrait-frame {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.message-body {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0 132px;
  border-top: 1px solid var(--line);
}

.editorial-article {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 820px);
  gap: clamp(30px, 7vw, 98px);
  align-items: start;
}

.article-intro {
  position: sticky;
  top: 112px;
}

.article-intro h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0;
}

.essay-text {
  max-width: 820px;
}

.essay-text p {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 600;
  line-height: 2.18;
  letter-spacing: 0.01em;
}

.essay-text p + p {
  margin-top: 1.4em;
}

.essay-text p:first-child::first-letter {
  float: left;
  padding: 0.12em 0.15em 0 0;
  color: var(--trust);
  font-size: 4.2em;
  font-weight: 900;
  line-height: 0.86;
}

.essay-text blockquote {
  margin: 64px 0;
  padding: 0 0 0 26px;
  color: var(--trust);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(27px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.48;
  letter-spacing: 0;
  border-left: 5px solid var(--trust);
}

.message-signature {
  grid-column: 2;
  margin-top: 76px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.message-signature span,
.message-signature strong {
  display: block;
}

.message-signature span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message-signature strong {
  margin-top: 8px;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 900;
}

.quick-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
}

.quick-toggle,
.quick-action,
.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
}

.quick-toggle {
  position: relative;
  z-index: 2;
  gap: 4px;
}

.quick-toggle span {
  display: block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.quick-options {
  position: absolute;
  right: 0;
  bottom: 58px;
  display: grid;
  gap: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.quick-actions.is-open .quick-options {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.quick-instagram {
  background: #d62976;
}

.quick-mail {
  background: #2563eb;
}

.back-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 120;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 70px;
  }

  .brand {
    width: 184px;
    height: 46px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 0;
    padding: 8px;
    visibility: hidden;
    opacity: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-header.menu-open .nav-links {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .pill-btn {
    display: none;
  }

  .message-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .portrait-stage {
    max-width: 480px;
  }

  .editorial-article {
    grid-template-columns: 1fr;
  }

  .article-intro {
    position: static;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
  }

  .message-signature {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .message-hero,
  .message-body {
    width: min(100% - 28px, 1180px);
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-actions,
  .final-actions {
    display: grid;
  }

  .primary-link,
  .ghost-link {
    width: 100%;
  }

  .message-body {
    padding: 72px 0 104px;
  }

  .essay-text p {
    font-size: 17px;
    line-height: 2.05;
  }

  .essay-text p:first-child::first-letter {
    float: none;
    padding: 0;
    font-size: 1em;
  }

  .essay-text blockquote {
    margin: 46px 0;
    padding-left: 18px;
    font-size: 28px;
  }

  .quick-actions {
    right: 14px;
    bottom: 14px;
  }

  .back-top {
    left: 14px;
    bottom: 14px;
  }
}
