/* =============================================
   KizunaCraft — Auxiliary Pages Stylesheet
   (About, Privacy, Terms, Cookies)
   ============================================= */

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

/* --- Variables (identical to main) --- */
:root {
  --bg:          #faf7f2;
  --bg-alt:      #f0ebe2;
  --bg-dark:     #1c1a2e;
  --accent:      #c5453c;
  --accent-dark: #8c2e27;
  --accent-muted:#f2dbd9;
  --text:        #1a1015;
  --text-muted:  #7a6e6e;
  --border:      #ddd6cc;
  --white:       #ffffff;

  --font-heading: 'Noto Serif JP', 'Hiragino Mincho ProN', '游明朝', serif;
  --font-body:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --max-w: 1160px;
  --shadow-sm: 0 1px 4px rgba(28,26,46,0.08);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* =============================================
   HEADER — auxiliary pages
   ============================================= */
.page-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-brand img {
  width: 40px;
  height: 40px;
}

.page-brand-text .brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bg-dark);
  line-height: 1.1;
}

.page-brand-text .brand-tagline {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.page-nav a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.page-nav a:hover { color: var(--accent); }

.page-nav a.active {
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
}

/* =============================================
   PAGE HERO BANNER
   ============================================= */
.page-hero {
  background: var(--bg-dark);
  color: var(--white);
  padding: 60px 0;
}

.page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-hero-crumb {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

.page-hero-crumb a { color: rgba(255,255,255,0.5); }
.page-hero-crumb a:hover { color: rgba(255,255,255,0.9); }

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  color: var(--white);
  margin-top: 6px;
}

.page-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

/* =============================================
   PAGE CONTENT AREA
   ============================================= */
.page-content {
  padding: 72px 0 96px;
}

/* About page — content blocks */
.page-block {
  margin-bottom: 64px;
}

.page-block-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-block-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 18px;
  line-height: 1.35;
  text-align: center;
}

.page-block-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 22px;
  margin-inline: auto;
}

.page-block-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 720px;
}

.page-block-text + .page-block-text {
  margin-top: 14px;
}

/* About — two-column layout */
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
  text-align: center;
}

.about-photo {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.about-photo svg { opacity: 0.3; }

/* About — values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.value-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.value-icon svg { color: var(--accent); }

.value-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 8px;
}

.value-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Policy pages — empty placeholder */
.policy-placeholder {
  min-height: 280px;
  background: var(--bg-alt);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.policy-placeholder svg {
  opacity: 0.3;
  margin-bottom: 4px;
}

/* Policy content styling */
.policy-content .container {
  max-width: 900px;
}

.policy-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.policy-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.policy-section h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 14px;
  line-height: 1.4;
}

.policy-section p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 12px;
}

.policy-section p:last-child { margin-bottom: 0; }

.policy-section ul li {
  margin-bottom: 8px;
}

/* Cookie banner styling */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 20px 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(28, 26, 46, 0.28);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-content {
  flex: 1;
  min-width: 0;
}

.cookie-banner-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.cookie-banner-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner-text a {
  color: #e0b87a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: #fff;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-banner-actions .btn {
  font-size: 12px;
  padding: 10px 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-cookie-accept {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-cookie-accept:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-cookie-reject,
.btn-cookie-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-cookie-reject:hover,
.btn-cookie-settings:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 18px 20px;
    gap: 14px;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 110px;
  }
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.visible {
  display: flex;
}

.cookie-modal-content {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(28, 26, 46, 0.2);
}

.cookie-modal-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 16px;
}

.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.cookie-modal-close:hover {
  color: var(--accent);
}

.cookie-setting-group {
  margin-bottom: 24px;
}

.cookie-setting-group:last-child {
  margin-bottom: 0;
}

.cookie-setting-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  cursor: pointer;
}

.cookie-setting-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.cookie-setting-text h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 4px;
}

.cookie-setting-text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  justify-content: flex-end;
}

.cookie-modal-actions .btn {
  font-size: 13px;
  padding: 12px 24px;
}

/* =============================================
   FOOTER — auxiliary pages (same as main)
   ============================================= */
.page-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 28px;
}

.page-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.page-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-footer-brand img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.page-footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.page-footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.page-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.page-footer-links a:hover { color: var(--white); }

.page-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.page-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.page-footer-legal {
  display: flex;
  gap: 18px;
}

.page-footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.page-footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* =============================================
   RESPONSIVE — auxiliary pages
   ============================================= */
@media (max-width: 768px) {
  .about-two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .page-nav { display: none; }
}
