/* ============================
   ЯПОНИЯ — pages.css
   Auxiliary pages styles
   ============================ */

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

/* ---- Variables ---- */
:root {
  --bg:          #F5F1EB;
  --white:       #FFFFFF;
  --navy:        #1C3D5A;
  --red:         #C0392B;
  --red-dark:    #A12F24;
  --text:        #1A1A1A;
  --muted:       #6B6B6B;
  --border:      #DDD8CF;
  --section-alt: #EDE9E2;
  --font:        'Noto Sans JP', sans-serif;
  --max-w:       1160px;
  --radius:      4px;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ---- Container ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Photo Placeholder ---- */
.photo-placeholder {
  background: var(--section-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  width: 100%;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: #162d44;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---- Divider ---- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-bottom: 24px;
  border: none;
}

/* ==============================
   HEADER
   ============================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: auto;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.header-tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ==============================
   PAGE HERO / TITLE BAND
   ============================== */
.page-hero {
  background: var(--navy);
  padding: 64px 0;
}

.page-hero-inner {
  max-width: 720px;
}

.page-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ==============================
   ABOUT PAGE — CONTENT BLOCKS
   ============================== */
.about-block {
  padding: 80px 0;
}

.about-block:nth-child(even) {
  background: var(--white);
}

.about-block:nth-child(odd) {
  background: var(--section-alt);
}

.about-block:first-child {
  background: var(--white);
}

.about-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-block-inner.reverse {
  direction: rtl;
}

.about-block-inner.reverse > * {
  direction: ltr;
}

.about-block-photo {
  height: 340px;
  border-radius: var(--radius);
}

.about-block-text .section-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.about-block-text h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 20px;
}

.about-block-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-block-text p:last-child {
  margin-bottom: 0;
}

/* About — Team grid */
.team-block {
  padding: 80px 0;
  background: var(--white);
}

.team-header {
  text-align: center;
  margin-bottom: 52px;
}

.team-header h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.team-header p {
  font-size: 15px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.team-photo {
  height: 260px;
}

.team-card-body {
  padding: 20px 22px 24px;
}

.team-card-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-card-body .role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
}

.team-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==============================
   LEGAL PAGES — EMPTY BLOCK
   ============================== */
.legal-main {
  padding: 80px 0;
  background: var(--white);
  min-height: 400px;
}

.legal-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  color: var(--muted);
}

.legal-placeholder p {
  font-size: 15px;
  color: var(--muted);
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
  background: #111B24;
  padding: 60px 0 32px;
  color: rgba(255,255,255,0.65);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 20px;
}

.footer-brand .brand-logo {
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 14px;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer-col ul a:hover {
  color: var(--white);
}

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

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-links a:hover {
  color: rgba(255,255,255,0.75);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .about-block-inner,
  .about-block-inner.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
    direction: ltr;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-hero {
    padding: 48px 0;
  }

  .legal-placeholder {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==============================
   LEGAL SECTIONS
   ============================== */
.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.legal-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-section p:last-of-type {
  margin-bottom: 0;
}

.legal-list {
  margin: 12px 0 12px 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.legal-list li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.contact-info {
  background: var(--section-alt);
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-size: 14px;
}

.contact-info p {
  margin-bottom: 10px;
  color: var(--text);
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info strong {
  color: var(--navy);
  font-weight: 600;
}

/* ==============================
   CENTER BLOCK ALIGNMENT
   ============================== */
.center-block .about-block-inner,
.center-block .team-header,
.center-block .about-block-text {
  text-align: center;
}

.center-block .about-block-photo {
  margin: 0 auto;
}

.center-block .team-header {
  max-width: 600px;
  margin: 0 auto 40px;
}



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

  .cookie-banner-actions button {
    flex: 1;
  }
}

/* ==============================
   IMAGE STYLES
   ============================== */
.about-block-inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-block-inner img {
    max-height: 350px;
  }
}
