@import url("./header_footer.css");

/* == Common Header Styles == */

:root {
  --bg: #0c0c0c;
  --fg: #fafaf8;
  --max-width: 1000px;
  --space: 16px;
  /* Typography tokens */
  --font-heading: "Zen Old Mincho", serif;
}
h1, h2, h3, p {
  text-align: left;
}

/* === Rights Page Section Spacing & Dividers === */
.intro-section > section {
  margin-block: 0rem;      /* generous vertical spacing */
  padding-block: 1.5rem;     /* subtle inner space */
  padding-top: 2rem;
  border-top: 1px solid rgba(12, 12, 12, 0.15);

}

/* Nested subsections under 「実演家の権利への配慮」 */
.rights-subsections {
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(12, 12, 12, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rights-subsection {
  padding-block: 0.75rem;
  border-top: 1px dashed rgba(12, 12, 12, 0.16);
}

.rights-subsection:first-of-type {
  border-top: none;
}

.intro-section > section:first-of-type {
  border-top: none;          /* no line above the first section */
  padding-top: 0;
}

/* === Base Reset & Typography === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  height: 100%;
}

body {
  margin: 0;
  padding-top: 30px;
  /* Make the page a flex column so the footer can be pushed to the bottom */
  display: flex;
  flex-direction: column;
  min-height: 100dvh; /* use dynamic viewport height for mobile address bars */

  background-color: var(--fg);
  color: var(--bg);
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
}

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

a {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* === Font Utilities === */
.zen-old-mincho-regular {
  font-family: "Zen Old Mincho", serif;
  font-weight: 400;
}

.zen-old-mincho-black {
  font-family: "Zen Old Mincho", serif;
  font-weight: 900;
}



/* 段階的にタイトルSVGの縦サイズを縮小（画面全体とのバランス調整） */
@media (max-width: 1000px) {
  .page-title-image {
    height: 72px;
  }
}

@media (max-width: 800px) {
  .page-title-image {
    height: 64px;
  }
}

@media (max-width: 600px) {
  .page-title-image {
    height: 56px;
  }
}

/* === Main Content Container === */
.container {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: var(--space);
}

/* === Sticky Footer Support === */
main,
.site-main {
  flex: 1 0 auto; /* take remaining vertical space */
  padding-top: 105px;
  padding-bottom: 50px;
}

/* === Headings & Paragraphs === */
h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

/* === Global Heading Sizes (Standardized for Web Readability) === */
h1 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
}

h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
}

h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
}

p {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 400;
  line-height: 1.75;
}

/* === Global Text Justification for Paragraphs === */
p {
  text-align: justify;
  text-justify: inter-ideograph;
}

@media (max-width: 600px) {
  main,
  .site-main {
    padding-top: 90px;
    padding-bottom: 20px;
  }
}
