@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,300,0,0&display=swap");

#page .cotomaru-qa-category-icon[data-qa-icon],
#page .cotomaru-qa-current-icon[data-qa-icon] {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  line-height: 1;
}

#page .cotomaru-qa-category-icon[data-qa-icon]::before,
#page .cotomaru-qa-current-icon[data-qa-icon]::before {
  content: attr(data-qa-icon);
  display: block;
  font-family: "Material Symbols Rounded" !important;
  font-size: 24px !important;
  font-weight: 300 !important;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
}

body.post-type-archive-cotomaru_qa .site-content > .ast-container,
body.tax-cotomaru_qa_category .site-content > .ast-container,
body.single-cotomaru_qa .site-content > .ast-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.cotomaru-qa-page {
  background: var(--color-bg);
  padding: var(--cotomaru-subpage-space-top) 24px var(--cotomaru-section-gap);
  width: 100%;
}

.cotomaru-qa-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 760px);
  gap: clamp(64px, 9vw, 150px);
  max-width: 1180px;
  margin: 0 auto;
}

.cotomaru-qa-sidebar {
  padding-top: 4px;
  padding-left: 20px;
}

.cotomaru-qa-sidebar h2 {
  margin: 0 0 30px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.cotomaru-qa-category-nav {
  display: grid;
  gap: 18px;
}

.cotomaru-qa-category-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text) !important;
  font-size: 16px;
  line-height: 1.7;
  text-decoration: none !important;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.cotomaru-qa-category-nav a:hover,
.cotomaru-qa-category-nav a.is-active {
  color: var(--color-accent) !important;
}

.cotomaru-qa-category-nav a.is-child {
  margin-left: 1.9em;
  font-size: 16px;
}

.cotomaru-qa-nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cotomaru-qa-nav-parent > a {
  min-width: 0;
}

.cotomaru-qa-accordion-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: var(--color-accent) !important;
  box-shadow: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.cotomaru-qa-toggle-icon {
  position: relative;
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

.cotomaru-qa-toggle-icon::before,
.cotomaru-qa-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.cotomaru-qa-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 0.25s ease;
}

.cotomaru-qa-accordion-toggle[aria-expanded="true"] .cotomaru-qa-toggle-icon::after,
.cotomaru-qa-archive-toggle[aria-expanded="true"] .cotomaru-qa-toggle-icon::after {
  opacity: 0;
}

.cotomaru-qa-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.cotomaru-qa-nav-children {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.cotomaru-qa-category-nav a.is-child .cotomaru-qa-category-icon {
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
}

.cotomaru-qa-category-icon,
.cotomaru-qa-current-icon {
  color: var(--color-accent);
  font-family: "Material Symbols Rounded";
  font-size: 24px;
  font-weight: normal;
  line-height: 1;
  font-variation-settings:
    "FILL" 0,
    "wght" 300,
    "GRAD" 0,
    "opsz" 24;
}

/* Keep ligature icons outside the site-wide text font override. */
#page .cotomaru-qa-category-icon,
#page .cotomaru-qa-current-icon {
  font-family: "Material Symbols Rounded" !important;
  font-weight: normal !important;
  font-style: normal;
  font-feature-settings: "liga";
  text-transform: none;
  white-space: nowrap;
}

#page .cotomaru-qa-category-nav a.is-child .cotomaru-qa-category-icon,
#page .cotomaru-qa-child-heading .cotomaru-qa-current-icon,
#page .cotomaru-qa-category-links .cotomaru-qa-current.is-child .cotomaru-qa-current-icon {
  font-family: inherit !important;
}

.cotomaru-qa-content {
  min-width: 0;
}

.cotomaru-qa-label {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.cotomaru-qa-content h1,
.cotomaru-qa-single h1 {
  margin: 0 0 20px;
  color: var(--color-text);
  font-size: 37px;
  font-weight: 450;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.cotomaru-qa-lead {
  margin: 0;
  color: var(--color-text);
  font-size: 15px;
  line-height: 2;
}

.cotomaru-qa-current {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3em 0 1em;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-decoration: none !important;
}

.cotomaru-qa-category-sections {
  margin-top: 48px;
}

.cotomaru-qa-lead + .cotomaru-qa-category-section,
.cotomaru-qa-lead + .cotomaru-qa-child-heading {
  margin-top: var(--cotomaru-section-gap);
}

.cotomaru-qa-parent-heading,
.cotomaru-qa-child-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  line-height: 1.7;
  text-decoration: none !important;
}

.cotomaru-qa-parent-heading {
  color: var(--color-accent) !important;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.cotomaru-qa-parent-heading a,
.cotomaru-qa-archive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: var(--color-accent) !important;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none !important;
}

.cotomaru-qa-parent-heading a:hover,
.cotomaru-qa-archive-toggle:hover,
.cotomaru-qa-archive-toggle:focus-visible {
  color: var(--color-accent) !important;
  background: transparent !important;
}

.cotomaru-qa-archive-toggle .cotomaru-qa-toggle-icon {
  margin-left: 8px;
}

.cotomaru-qa-archive-children {
  display: grid;
  gap: 14px;
  margin-left: 1.9em;
  padding: 18px 0 4px;
}

.cotomaru-qa-archive-children .cotomaru-qa-child-heading {
  margin: 0;
}

.cotomaru-qa-child-heading {
  margin: 1.35em 0 0;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.8;
  scroll-margin-top: 120px;
}

a.cotomaru-qa-child-heading:hover,
a.cotomaru-qa-child-heading:focus-visible {
  color: var(--color-accent) !important;
}

.cotomaru-qa-child-section {
  scroll-margin-top: 120px;
}

.cotomaru-qa-child-heading .cotomaru-qa-current-icon {
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
}

.cotomaru-qa-category-links {
  display: grid;
  gap: 1em;
  margin-top: 3em;
}

.cotomaru-qa-category-links .cotomaru-qa-current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--color-text) !important;
  font-size: 16px;
  line-height: 1.7;
  transition: color 0.2s ease;
}

.cotomaru-qa-category-links .cotomaru-qa-current.is-parent {
  color: var(--color-accent) !important;
}

.cotomaru-qa-category-links .cotomaru-qa-current:hover {
  color: var(--color-accent) !important;
}

.cotomaru-qa-category-links .cotomaru-qa-current.is-child {
  margin-left: 1.9em;
  font-size: 14px;
}

.cotomaru-qa-category-links .cotomaru-qa-current.is-child .cotomaru-qa-current-icon {
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
}

.cotomaru-qa-category-section + .cotomaru-qa-category-section {
  margin-top: var(--cotomaru-section-gap);
}

.cotomaru-qa-category-sections > .cotomaru-qa-archive-group + .cotomaru-qa-archive-group {
  margin-top: 32px;
}

.cotomaru-qa-list {
  display: grid;
  gap: 0;
  margin-top: 0.6em;
  margin-left: 1.9em;
  border-top: 1px solid #eadbd5;
}

.cotomaru-qa-card {
  border-bottom: 1px solid #eadbd5;
}

.cotomaru-qa-card__question {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.cotomaru-qa-card__question:hover,
.cotomaru-qa-card__question:focus-visible {
  background: transparent !important;
  color: var(--color-accent) !important;
}

.cotomaru-qa-card__q {
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.cotomaru-qa-card__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.cotomaru-qa-card__plus {
  position: relative;
  width: 18px;
  height: 18px;
}

.cotomaru-qa-card__plus::before,
.cotomaru-qa-card__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1px;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.cotomaru-qa-card__plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.cotomaru-qa-card.is-open .cotomaru-qa-card__plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.cotomaru-qa-card__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.cotomaru-qa-card__answer-inner {
  padding: 0 0 26px 34px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 2.1;
}

.cotomaru-qa-card__answer-inner > *:first-child {
  margin-top: 0;
}

.cotomaru-qa-card__answer-inner > *:last-child {
  margin-bottom: 0;
}

.cotomaru-qa-pagination {
  margin-top: 34px;
}

.cotomaru-qa-empty {
  margin: 0;
  padding: 22px 0;
  color: var(--color-text);
  font-size: 15px;
  line-height: 2;
}

.cotomaru-qa-page--single {
  display: flex;
  justify-content: center;
}

.cotomaru-qa-single {
  width: min(100%, 860px);
  padding: 56px;
  background: #fff;
  border: 1px solid #eadbd5;
}

.cotomaru-qa-answer {
  margin: 34px 0;
  color: var(--color-text);
  font-size: 15px;
  line-height: 2.1;
}

.cotomaru-qa-answer > *:first-child {
  margin-top: 0;
}

.cotomaru-qa-back {
  color: var(--color-accent) !important;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none !important;
}

.cotomaru-qa-back:hover {
  opacity: 0.75;
}

@media (max-width: 768px) {
  .cotomaru-qa-page {
    padding: var(--cotomaru-subpage-space-top-mobile) 18px var(--cotomaru-section-gap);
  }

  .cotomaru-qa-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cotomaru-qa-sidebar {
    padding-left: 0;
  }

  .cotomaru-qa-sidebar h2 {
    margin-bottom: 18px;
  }

  .cotomaru-qa-category-nav {
    gap: 12px;
  }

  .cotomaru-qa-category-sections {
    margin-top: 32px;
  }

  .cotomaru-qa-category-sections > .cotomaru-qa-archive-group + .cotomaru-qa-archive-group {
    margin-top: 24px;
  }

  .cotomaru-qa-content h1,
  .cotomaru-qa-single h1 {
    font-size: 29px;
  }

  .cotomaru-qa-current {
    margin-top: 3em;
  }

  .cotomaru-qa-card__question {
    padding: 20px 0;
  }

  .cotomaru-qa-card__title {
    font-size: 16px;
  }

  .cotomaru-qa-card__answer-inner {
    padding-left: 0;
  }

  .cotomaru-qa-single {
    padding: 30px 24px;
  }
}
