/* Base styles (Reset, Variables, Typography) */

:root {
  --primary-color: #885cf2;
  --primary-dark: #6736e2;
  --primary-color-light: #f1ecff;
  --yellow-color: #ffde07;
  --yellow-color: #b6ff25;
  --accent-color: #ff1f6e;
  --accent-color-light: #ffd7e5;
  --secondary-color: #241f3a;
  --text-color: #231b3f;
  --text-light: #5b5475;
  --text-muted: #93919b;
  --bg-light: #faf9ff;
  --white: #ffffff;
  --card-radius: 36px;
  --radius-pill: 999px;
  --border-light: #eeeeee;
  --bs-danger-rgb: 244, 33, 54;
  --bs-danger: #f42136;
}

.row,
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  --bs-gutter-x: 2rem;
}

body {
  font-family: "M PLUS Rounded 1c", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-color);
  line-height: 1.8;
  padding-top: 80px;
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

section {
  padding: 8rem 0;
  position: relative;
}

.text-pre-wrap {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Utilities */
.text-pre-wrap {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

.primary-color {
  color: var(--primary-color);
}

.bg-yellow-color {
  background-color: var(--yellow-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

/* Form Check */
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  box-shadow: 0 0 0 .25rem rgba(136, 92, 242, .25);
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 800;
  text-transform: uppercase;
}

.section-title-container {
  margin-bottom: 4rem;
  text-align: center;
}

.section-en-title {
  display: block;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}

/* Header */
.site-header {
  height: 80px;
  display: flex;
  align-items: center;
}

.site-header .navbar-brand {
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
}

.site-header .navbar-brand img,
.site-header .navbar-brand .custom-logo {
  max-height: 40px;
  width: auto;
  height: auto;
}

.site-header .navbar-nav .nav-item {
  margin-bottom: 0;
}

.site-header .navbar-nav .nav-link {
  color: var(--text-color);
  padding: .5rem 1rem;
}

.site-header .navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-toggler {
  font-size: 1.4rem;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active {
  border: none;
  box-shadow: none;
}

.offcanvas-header,
.offcanvas-body {
  padding: 20px;
}

/* Footer */
.site-footer {
  background-color: #1f1636;
  color: #999;
}

.site-footer .footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-footer .footer-logo img,
.site-footer .footer-logo .custom-logo {
  max-height: 60px;
  width: auto;
  height: auto;
}

.common-page {
  min-height: calc(100vh - 80px);
}

.common-page h2 {
  font-size: 1.85rem;
}

.common-page h2,
.common-page h3,
.common-page h4,
.common-page h5,
.common-page h6 {
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

.single-post-container {
  min-height: calc(100vh - 80px);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

.single-post-container .post-thumbnail {
  max-height: 480px;
  overflow: hidden;
}

/* Responsive Base */
@media (max-width: 991px) {
  :root {
    --card-radius: 24px;
  }

  .site-header .navbar-brand img,
  .site-header .navbar-brand .custom-logo {
    max-height: 32px;
    width: auto;
    height: auto;
  }

  .offcanvas.offcanvas-end {
    width: 50%;
  }

  .site-header {
    padding: 0 .5rem;
  }

  .site-header .navbar-nav .nav-item {
    margin-bottom: 1rem;
  }

  section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .single-page .section-title {
    font-size: 1.5rem;
  }

  .section-title-container {
    margin-bottom: 3rem;
  }

  .common-page h2 {
    font-size: 1.5rem;
  }

  .single-post-container {
    border-left: none;
    border-right: none;
  }
}