@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #f8f6f2;
  --color-text: #1e1e1e;
  --color-accent: #1a3a4a;
  --color-light: #ffffff;
  --color-muted: #5a5a5a;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(0,0,0,0.06);
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: clip;
}

img {
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--color-light);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.92);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo img {
  display: block;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.logo .logo-line1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.header-notice {
  font-size: 0.8rem;
  color: var(--color-muted);
  background: rgba(0,0,0,0.03);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

main {
  flex: 1 0 auto;
  max-width: 1560px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.page-layout {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 2rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 90px;
  text-align: center;
}

.sidebar-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.sidebar a {
  display: block;
}

.sidebar img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  transition: opacity 0.2s;
}

.sidebar a:hover img {
  opacity: 0.88;
}

.article-container {
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin: 1rem 0 2rem;
}

.article-container h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.8rem;
  letter-spacing: -0.3px;
  color: var(--color-accent);
}

.article-image-wrapper {
  margin-bottom: 2.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #eae7e0;
}

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

.article-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: #2a2a2a;
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

.article-content p:last-of-type {
  margin-bottom: 0;
}

footer {
  background: var(--color-accent);
  color: #e0e0e0;
  padding: 2rem 2rem 1.5rem;
  margin-top: auto;
}

.footer-inner-compact {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-row-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand-compact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-brand-compact .logo a {
  color: #fff;
}
.footer-brand-compact .logo img {
  filter: brightness(0) invert(1);
}

.footer-address-compact {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5d6;
}
.footer-address-compact span {
  margin-bottom: 0.15rem;
}

.footer-links-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  font-size: 0.95rem;
  padding-top: 0.2rem;
}
.footer-links-compact a {
  color: #e0e0e0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.footer-links-compact a:hover {
  border-bottom-color: #e0e0e0;
}

.footer-row-disclaimer {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5d6;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
}
.footer-row-disclaimer p {
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #a0b3b5;
}

.legal-page {
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin: 1rem 0 2rem;
  word-break: break-word;
}
.legal-page h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1.8rem;
  border-bottom: 2px solid var(--color-bg);
  padding-bottom: 0.5rem;
}
.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.8rem 0 0.8rem;
  color: var(--color-accent);
}
.legal-page p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.legal-page a {
  color: var(--color-accent);
  text-decoration: underline;
}
.legal-page a:hover {
  text-decoration: none;
}
.legal-page .legal-contact {
  margin: 1rem 0;
}

.thanks-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem 1.5rem;
}

.thanks-box {
  background: var(--color-light);
  max-width: 620px;
  width: 100%;
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.03);
}

.thanks-logo {
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
}

.thanks-box h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.thanks-box p {
  font-size: 1.1rem;
  color: #2a2a2a;
  margin-bottom: 0.6rem;
}

.thanks-box p:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
}

@media (max-width: 820px) {
  header {
    padding: 0.6rem 1rem;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .header-notice {
    white-space: normal;
    font-size: 0.7rem;
    padding: 0.2rem 0.8rem;
  }
  .article-container, .legal-page {
    padding: 1.5rem;
  }
  .article-container h1, .legal-page h1 {
    font-size: 1.6rem;
  }
  .article-content p {
    font-size: 1rem;
  }
  .footer-row-top {
    flex-direction: column;
    gap: 1.2rem;
  }
  .footer-links-compact {
    gap: 1rem;
  }
  .thanks-box {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .logo a {
    flex-direction: column;
  }
  .header-notice {
    word-break: break-all;
  }
  .logo a span {
    word-break: break-all;
    min-width: 0;
    flex: 1;
  }
  .footer-address-compact {
    word-break: break-all;
  }
}

@media (max-width: 480px) {
  .logo .logo-line1 {
    font-size: 1.2rem;
  }
  .article-container, .legal-page {
    padding: 1rem;
  }
  .article-container h1, .legal-page h1 {
    font-size: 1.4rem;
  }
}
