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

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

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

:root {
  --cream:   #F5EFE6;
  --charcoal:#2D2D2D;
  --rust:    #B85C38;
  --sand:    #E8DDD0;
  --taupe:   #8C7B6E;
  --white:   #FFFFFF;
  --radius:  4px;
  --max-w:   1160px;
  --font-head: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

html { background: var(--cream); }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--charcoal);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); }
p { color: var(--taupe); line-height: 1.8; }

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

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.brand-tagline {
  font-size: 0.7rem;
  color: var(--taupe);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}

.header-back a {
  font-size: 0.88rem;
  color: var(--taupe);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.header-back a:hover { color: var(--rust); }

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--charcoal);
  padding: 56px 0 52px;
}

.page-hero h1 { color: var(--cream); }

.page-hero .breadcrumb {
  font-size: 0.82rem;
  color: #a09890;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-hero .breadcrumb a { color: #c0b8b0; }
.page-hero .breadcrumb a:hover { color: var(--cream); }

/* ---- PAGE CONTENT ---- */
.page-content {
  padding: 64px 0;
}

.content-block {
  max-width: 820px;
  margin-bottom: 56px;
}

.content-block h2 {
  margin-bottom: 16px;
}

.content-block p {
  margin-bottom: 14px;
  font-size: 0.97rem;
}

.divider {
  width: 40px;
  height: 3px;
  background: var(--rust);
  margin: 16px 0 28px;
}

/* About Us specific */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.about-img-placeholder {
  width: 100%;
  height: 280px;
  background: var(--sand);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--taupe);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

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

.value-card-icon {
  width: 40px;
  height: 40px;
  color: var(--rust);
  margin-bottom: 14px;
}

.value-card h3 { margin-bottom: 8px; font-size: 1rem; }
.value-card p { font-size: 0.88rem; }

/* Empty legal pages */
.legal-empty {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px dashed var(--sand);
  border-radius: var(--radius);
  color: var(--taupe);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--charcoal);
  color: #c0b8b0;
  padding: 48px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #444;
}

.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: #a09890; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: #a09890; }
.footer-col ul li a:hover { color: var(--cream); }

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

.footer-bottom p { font-size: 0.82rem; color: #6e6560; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.82rem; color: #6e6560; }
.footer-bottom-links a:hover { color: var(--cream); }

.icon { display: inline-block; width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }

/* ---- Legal Content Styling ---- */
.legal-content {
  padding: 0;
}

.legal-content h3 {
  color: var(--charcoal);
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-head);
}

.legal-content p {
  color: var(--taupe);
  line-height: 1.9;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  margin-left: 24px;
  margin-top: 12px;
}

.legal-content ul li {
  color: var(--taupe);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--rust);
  text-decoration: underline;
}

.legal-content a:hover {
  opacity: 0.8;
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--sand);
  margin: 40px 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
