/* ============================================================
   ComicChronicle — Auxiliary Pages Stylesheet
   (About Us, Privacy Policy, Terms of Service, Cookie Policy)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --color-bg:        #F5F3EE;
  --color-surface:   #FFFFFF;
  --color-dark:      #1A1A2E;
  --color-mid:       #2D2D44;
  --color-accent:    #E63946;
  --color-accent-2:  #F4A261;
  --color-muted:     #6B6B80;
  --color-border:    #DCDCD6;
  --color-placeholder: #C8C4BB;
  --font-heading: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  --font-body:    'Noto Sans JP', 'Space Grotesk', sans-serif;
  --radius-sm:  4px;
  --radius-md:  8px;
  --max-w: 1200px;
  --gutter: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; background: var(--color-bg); }
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-bg);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Header ── */
.site-header {
  background: var(--color-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--color-accent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.header-logo .brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.header-logo .brand-name span { color: var(--color-accent); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #c1121f !important; }
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ── Page Hero ── */
.page-hero {
  background: var(--color-dark);
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-hero-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-2);
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}
.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.breadcrumb a, .breadcrumb span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-heading);
}
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }

/* ── Page Content ── */
.page-content {
  padding: 4rem 0 5rem;
}
.page-content-inner {
  max-width: 860px;
}

/* About blocks */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}
.about-block:last-child { border-bottom: none; }
.about-block.reverse { direction: rtl; }
.about-block.reverse > * { direction: ltr; }
.about-block-img {
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.about-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-block-img svg {
  width: 100%;
  height: 100%;
}
.about-block-img .img-placeholder {
  height: 100%;
  width: 100%;
  background: var(--color-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-block-img .img-placeholder::after {
  content: 'PHOTO';
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #a09a91;
  position: absolute;
}
.about-block-text .label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
  text-align: center;
}
.about-block-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  text-align: center;
}
.about-block-text p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.7;
  text-align: center;
}

/* Team cards */
.team-section {
  padding: 3rem 0 0;
  text-align: center;
}
.team-section h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  text-align: center;
  padding: 1.5rem 1rem;
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-placeholder);
  margin: 0 auto 1rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-avatar::after {
  content: '';
  display: block;
}
.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}
.team-card .role {
  font-size: 0.82rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* Policy pages empty state */
.policy-empty {
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-muted);
}
.policy-empty p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  background: #0F0F1A;
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-brand .brand-name span { color: var(--color-accent); }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* Policy content styling */
.policy-content {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
}
.policy-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}
.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.policy-section h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}
.policy-section p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.policy-section p:last-child {
  margin-bottom: 0;
}
.policy-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
.policy-list li {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.cookie-table th,
.cookie-table td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  text-align: left;
  font-size: 0.9rem;
}
.cookie-table th {
  background: var(--color-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}
.cookie-table tr:nth-child(even) {
  background: rgba(0,0,0,0.02);
}
.policy-section a {
  color: var(--color-accent);
  text-decoration: underline;
}
.policy-section a:hover {
  color: #c1121f;
}

/* ── Cookie Modal ── */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}
.cookie-modal.hidden {
  display: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.cookie-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}
.cookie-modal-close:hover {
  color: var(--color-dark);
}
.cookie-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.cookie-intro {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.cookie-option {
  border: none;
  padding: 0;
  margin-bottom: 1.25rem;
  display: block;
}
.cookie-option legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.cookie-option legend input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}
.cookie-option legend input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.cookie-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-left: 0.5rem;
}
.cookie-option p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  margin-left: 2rem;
}
.cookie-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.cookie-modal-link {
  font-size: 0.85rem;
  color: var(--color-accent);
  text-decoration: underline;
}
.cookie-modal-link:hover {
  color: #c1121f;
}
.cookie-modal-actions {
  display: flex;
  gap: 0.75rem;
}
.cookie-modal-actions .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: #c1121f; border-color: #c1121f; }
.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}
.btn-outline:hover { background: var(--color-dark); color: #fff; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark);
  color: rgba(255,255,255,0.9);
  padding: 1.5rem;
  z-index: 9999;
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  font-size: 0.9rem;
  line-height: 1.6;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner.hidden {
  display: none;
}
.cookie-banner-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  justify-content: space-between;
}
.cookie-banner-content {
  flex: 1;
}
.cookie-banner-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}
.cookie-banner-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}
.cookie-banner-content a {
  color: var(--color-accent-2);
  text-decoration: underline;
}
.cookie-banner-content a:hover {
  color: #ffb35a;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-accept:hover {
  background: #c1121f;
}
.cookie-customize {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3);
}
.cookie-customize:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: none;
  font-weight: 500;
}
.cookie-decline:hover {
  color: rgba(255,255,255,1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .policy-content {
    padding: 1.5rem;
  }
  .cookie-banner-container {
    flex-direction: column;
    gap: 1rem;
  }
  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  .cookie-banner button {
    width: 100%;
    text-align: center;
  }
}
