:root {
  --bg: #f7f5f0;
  --text: #111111;
  --muted: #555555;
  --accent: #0b1f3b;
  --line: #ddd8cd;
  --max-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100%;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0.5rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.lang-switcher a {
  color: var(--muted);
  text-decoration: none;
}

.lang-switcher a:hover {
  color: var(--accent);
}

.lang-switcher a.active {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.mini-links {
  display: flex;
  gap: 0.9rem;
  font-size: 0.9rem;
}

main {
  padding: 3rem 0 4rem;
}

section {
  padding: 1.3rem 0;
}

section + section {
  border-top: 1px solid var(--line);
}

h1,
h2 {
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.subtitle {
  margin: 0.6rem 0 1rem;
  font-size: 1.08rem;
  color: var(--muted);
}

p {
  margin: 0.6rem 0;
}

ul {
  margin: 0.6rem 0;
  padding-left: 1.1rem;
}

li + li {
  margin-top: 0.3rem;
}

.portrait {
  margin: 1.2rem 0 0.9rem;
  width: min(280px, 62vw);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  font-size: 0.97rem;
}

.now-box {
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .mini-links {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer {
    border: none;
  }

  a {
    color: var(--text);
    text-decoration: none;
  }
}
