@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'DM Sans', 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

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

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
  border-radius: 2px;
}

ol, ul {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY SCALE
   ============================================ */
h1, h2, h3, h4 {
  font-family: 'Nunito', 'DM Sans', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================
   LAYOUT WRAPPER
   ============================================ */
.wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   NAVIGATION — header > nav > a×n
   No ul/li per spec
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 2px solid #000;
}

.top-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 56px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.nav-left a,
.nav-right a {
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0 0.75rem;
  min-height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.nav-left a:hover,
.nav-right a:hover {
  text-decoration: none;
  border-bottom-color: #fff;
  color: #fff;
}

.nav-left a[aria-current="page"],
.nav-right a[aria-current="page"] {
  border-bottom-color: #fff;
  color: #fff;
}

.nav-brand {
  flex-shrink: 0;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-text {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.05em;
  color: #fff;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 1.25rem;
  min-height: 56px;
  min-width: 48px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.breadcrumb-bar {
  background: #111;
  padding: 0.5rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: #aaa;
  border-top: 1px solid #222;
}

.breadcrumb-bar a {
  color: #ccc;
  font-weight: 600;
}

.breadcrumb-bar a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================
   HERO — diagonal slice, 45vh, right-img
   ============================================ */
.hero-diagonal {
  position: relative;
  min-height: 45vh;
  background: #000;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1 1 50%;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-eyebrow {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0;
}

.hero-h1 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #fff;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
  max-width: 40ch;
  margin-bottom: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #000;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  align-self: flex-start;
  min-height: 48px;
  transition: background 0.15s, transform 0.15s;
}

.hero-cta:hover {
  background: #e0e0e0;
  text-decoration: none;
  transform: translateY(-2px);
}

.hero-media {
  flex: 0 0 40%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-media--empty {
  min-height: 200px;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(255,255,255,0.08);
}

/* Diagonal slice element */
.hero-slice {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: #fff;
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 3;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
main {
  padding: 4rem 0 5rem;
}

main .wrap {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

main section {
  width: 100%;
}

/* article inside section inside wrap */
main section article {
  width: 100%;
}

/* ============================================
   PAGE BODY (home & article content)
   ============================================ */
.page-body,
.article-content,
.about-body,
.privacy-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #111;
}

/* Headings inside content */
.page-body h2,
.article-content h2,
.about-body h2,
.privacy-body h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 2.5rem 0 0.25rem;
  color: #000;
}

.page-body h2 + hr,
.article-content h2 + hr,
.about-body h2 + hr,
.privacy-body h2 + hr {
  border: none;
  border-top: 2px solid #000;
  margin: 0.4rem 0 1.25rem;
}

.page-body h3,
.article-content h3,
.about-body h3,
.privacy-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 2rem 0 0.5rem;
  color: #000;
}

.page-body ul,
.article-content ul,
.about-body ul,
.privacy-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-body ol,
.article-content ol,
.about-body ol,
.privacy-body ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-body li,
.article-content li,
.about-body li,
.privacy-body li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.page-body a,
.article-content a,
.about-body a,
.privacy-body a {
  color: #000;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-body table,
.article-content table,
.about-body table,
.privacy-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.page-body th,
.article-content th {
  background: #000;
  color: #fff;
  padding: 0.6rem 0.75rem;
  font-weight: 700;
  text-align: left;
}

.page-body td,
.article-content td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

/* h2 + hr per spec */
h2 {
  margin-bottom: 0.25rem;
}

h2 + hr {
  border: none;
  border-top: 2px solid #000;
  margin: 0.4rem 0 1.25rem;
}

/* ============================================
   ARTICLE LAYOUT
   ============================================ */
.article-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: #000;
}

.article-date {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.02em;
}

.article-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: #333;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 65ch;
}

.article-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 10px;
  order: -1;
}

/* ============================================
   CHILD LIST / CARD LIST
   ============================================ */
.child-list {
  padding-top: 1rem;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.card-list li {
  margin: 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.18s, transform 0.18s;
  min-height: 100px;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-3px);
  text-decoration: none;
}

.card-title {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  color: #000;
  line-height: 1.3;
}

.card small {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
}

.card-date {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.2rem;
}

/* ============================================
   RELATED ASIDE
   ============================================ */
.related-aside {
  border-top: 2px solid #000;
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.related-aside h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.related-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  background: #fafafa;
  transition: background 0.15s;
}

.related-list li:hover {
  background: #f0f0f0;
}

.related-list a {
  font-weight: 800;
  font-size: 0.95rem;
  color: #000;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.related-list a:hover {
  text-decoration: underline;
}

.related-list small {
  font-size: 0.8rem;
  color: #666;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-masthead {
  background: #000;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.about-masthead::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0% 100%);
}

.about-masthead-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.about-masthead-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0;
}

.about-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
  line-height: 1.05;
}

.about-masthead-img img {
  border-radius: 10px;
  max-width: 260px;
  object-fit: cover;
}

.about-hero-img {
  border-radius: 10px;
}

.about-nav-section {
  padding-top: 1rem;
}

.about-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
  list-style: decimal;
  padding-left: 1.5rem;
}

.about-nav-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.about-nav-list a {
  font-weight: 800;
  font-size: 0.95rem;
  color: #000;
  text-decoration: none;
}

.about-nav-list a:hover {
  text-decoration: underline;
}

.about-nav-list small {
  font-size: 0.8rem;
  color: #666;
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-masthead {
  background: #000;
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.privacy-masthead::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 50px;
  background: #fff;
  clip-path: polygon(0 50%, 100% 0%, 100% 100%, 0% 100%);
}

.privacy-masthead .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.privacy-h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
  line-height: 1.05;
}

.privacy-footer-links {
  padding-top: 1rem;
}

.privacy-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
  list-style: decimal;
  padding-left: 1.5rem;
}

.privacy-link-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.privacy-link-list a {
  font-weight: 800;
  font-size: 0.95rem;
  color: #000;
}

.privacy-link-list a:hover {
  text-decoration: underline;
}

.privacy-link-list small {
  font-size: 0.8rem;
  color: #666;
}

/* ============================================
   FOOTER — 三列 dl (per spec)
   ============================================ */
.site-footer {
  background: #000;
  color: #fff;
  padding: 3rem 1.5rem 2rem;
  overflow: hidden;
}

.footer-brand-row {
  text-align: center;
  overflow: hidden;
  margin-bottom: 2.5rem;
  user-select: none;
  pointer-events: none;
}

.footer-bigname {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: -0.07em;
  color: #fff;
  opacity: 0.08;
  display: block;
  white-space: nowrap;
  line-height: 1;
}

.footer-cols {
  display: flex;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1 1 180px;
  min-width: 140px;
}

.footer-col dt {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #333;
}

.footer-col dd {
  margin: 0 0 0.4rem;
}

.footer-col dd a {
  color: #ccc;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
  text-decoration: none;
  display: inline-block;
  min-height: 28px;
  line-height: 28px;
}

.footer-col dd a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  text-align: center;
  font-size: 0.775rem;
  color: #555;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid #222;
  line-height: 1.7;
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-init.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-cta {
    transition: none;
  }
  .card {
    transition: none;
  }
}

/* ============================================
   RESPONSIVE — Mobile ≤768px
   ============================================ */
@media (max-width: 768px) {
  .nav-left,
  .nav-right {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: #111;
    padding: 0.5rem 0;
  }

  .top-nav {
    flex-wrap: wrap;
    position: relative;
  }

  .nav-brand {
    flex: 1;
    padding: 0 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-open .nav-left,
  .nav-open .nav-right {
    display: flex;
    order: 10;
    width: 100%;
  }

  .nav-left a,
  .nav-right a {
    width: 100%;
    padding: 0 1.25rem;
    min-height: 48px;
    border-bottom: 1px solid #222;
    font-size: 0.9rem;
  }

  .hero-inner {
    flex-direction: column;
    padding: 2.5rem 1.25rem 3rem;
    gap: 1.5rem;
  }

  .hero-text {
    order: 1;
  }

  .hero-media {
    order: 2;
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .hero-h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero-slice {
    height: 50px;
  }

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

  .footer-cols {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-masthead-inner {
    flex-direction: column;
  }

  .about-masthead-img {
    display: none;
  }

  main {
    padding: 2.5rem 0 3.5rem;
  }

  main .wrap {
    gap: 2.5rem;
  }

  .article-h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .footer-bigname {
    font-size: clamp(2.5rem, 15vw, 5rem);
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 1rem;
  }

  .hero-inner {
    padding: 2rem 1rem 2.5rem;
  }

  .hero-h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .brand-text {
    font-size: 1rem;
  }

  .about-masthead {
    padding: 2.5rem 0 4rem;
  }

  .privacy-masthead {
    padding: 2rem 0 3.5rem;
  }

  .site-footer {
    padding: 2rem 1rem 1.5rem;
  }
}
