.tanooki-faq-page {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 42px;
}

.tanooki-faq {
  --faq-accent: #ac3654;
  --faq-accent-dark: #732138;
  --faq-accent-soft: rgba(172, 54, 84, 0.1);
  --faq-bg: #f6f1e8;
  --faq-card: #fffdf8;
  --faq-text: #2c2926;
  --faq-muted: #766f67;
  --faq-border: rgba(75, 60, 49, 0.14);
  --faq-shadow: 0 16px 42px rgba(56, 38, 29, 0.1);
  overflow: hidden;
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  background: var(--faq-bg);
  box-shadow: var(--faq-shadow);
  color: var(--faq-text);
}

.tanooki-faq__hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 250px;
  padding: 44px 48px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.04) 78%),
    url('../images/SHFAQ-banner.png') center center / cover no-repeat;
  color: #fff;
}

.tanooki-faq__hero::before,
.tanooki-faq__hero::after {
  display: none;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: '';
}

.tanooki-faq__hero::before {
  top: -180px;
  right: -90px;
  width: 430px;
  height: 430px;
}

.tanooki-faq__hero::after {
  right: 40px;
  bottom: -170px;
  width: 330px;
  height: 330px;
}

.tanooki-faq__hero-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.58);
}

.tanooki-faq__hero-decoration {
  display: none;
  position: absolute;
  z-index: 1;
  right: 72px;
  width: 155px;
  color: rgba(255, 255, 255, 0.09);
  filter: drop-shadow(0 10px 18px rgba(49, 8, 21, 0.25));
  transform: rotate(7deg);
}

.tanooki-faq__hero-decoration svg {
  display: block;
  width: 100%;
}

.tanooki-faq__eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.tanooki-faq__hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(31px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.tanooki-faq__intro {
  max-width: 600px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.7;
}

.tanooki-faq__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tanooki-faq__workspace {
  padding: 38px 48px 46px;
}

.tanooki-faq__search-panel {
  position: relative;
  z-index: 3;
  margin-top: -67px;
  padding: 22px 24px;
  border: 1px solid var(--faq-border);
  border-radius: 9px;
  background: var(--faq-card);
  box-shadow: 0 12px 26px rgba(52, 31, 25, 0.13);
}

.tanooki-faq__search-label {
  display: block;
  margin-bottom: 9px;
  color: var(--faq-text);
  font-size: 13px;
  font-weight: 700;
}

.tanooki-faq__search-wrap {
  position: relative;
}

.tanooki-faq__search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--faq-muted);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.tanooki-faq__search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: var(--faq-muted);
  content: '';
  transform: rotate(45deg);
}

.tanooki-faq .tanooki-faq__search {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 11px 46px;
  border: 1px solid var(--faq-border);
  border-radius: 6px;
  background: var(--faq-bg);
  color: var(--faq-text);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tanooki-faq .tanooki-faq__search:focus {
  border-color: var(--faq-accent);
  outline: none;
  background: var(--faq-card);
  box-shadow: 0 0 0 3px var(--faq-accent-soft);
}

.tanooki-faq__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 18px;
}

.tanooki-faq .tanooki-faq__filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--faq-border);
  border-radius: 999px;
  background: var(--faq-card);
  color: var(--faq-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.tanooki-faq .tanooki-faq__filter span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	place-items: center;
	border-radius: 9px;
	background: rgba(110, 95, 83, 0.1);
	font-size: 10px;
	line-height: 1;
	text-align: center;
	vertical-align: middle;
}

.tanooki-faq .tanooki-faq__filter:hover {
  border-color: var(--faq-accent);
  color: var(--faq-accent);
  transform: translateY(-1px);
}

.tanooki-faq .tanooki-faq__filter.is-active {
  border-color: var(--faq-accent);
  background: var(--faq-accent);
  color: #fff;
}

.tanooki-faq .tanooki-faq__filter.is-active span {
  background: rgba(255, 255, 255, 0.2);
}

.tanooki-faq__navigator {
  margin-bottom: 24px;
  border: 1px solid var(--faq-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.38);
}

.tanooki-faq__navigator summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  color: var(--faq-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.tanooki-faq__navigator summary::-webkit-details-marker {
  display: none;
}

.tanooki-faq__navigator summary::before {
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-right: 2px solid var(--faq-accent);
  border-bottom: 2px solid var(--faq-accent);
  content: '';
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}

.tanooki-faq__navigator[open] summary::before {
  transform: rotate(45deg) translateY(-2px);
}

.tanooki-faq__navigator summary > span:first-child {
  margin-right: auto;
}

.tanooki-faq__navigator-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--faq-accent-soft);
	color: var(--faq-accent);
	font-size: 10px;
	line-height: 1;
	text-align: center;
	vertical-align: middle;
}

.tanooki-faq-comparison__intro {
	max-width: 74ch;
	margin-bottom: 18px;
}

.tanooki-faq-comparison__scroll {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--faq-border);
	border-radius: 8px;
	background: var(--faq-card);
	box-shadow: 0 10px 26px rgba(56, 38, 29, 0.07);
	-webkit-overflow-scrolling: touch;
}

.tanooki-faq-comparison table {
	width: 100%;
	min-width: 610px;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 13px;
	line-height: 1.45;
}

.tanooki-faq-comparison caption {
	padding: 12px 14px;
	color: var(--faq-muted);
	font-size: 11px;
	text-align: left;
}

.tanooki-faq-comparison th,
.tanooki-faq-comparison td {
	padding: 9px 14px;
	border: 0;
	border-right: 1px solid var(--faq-border);
	border-bottom: 1px solid var(--faq-border);
	text-align: center;
}

.tanooki-faq-comparison tr > :last-child {
	border-right: 0;
}

.tanooki-faq-comparison tbody tr:last-child td {
	border-bottom: 0;
}

.tanooki-faq-comparison thead th {
	background: #332d30;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.tanooki-faq-comparison thead th:first-child {
	border-top-left-radius: 7px;
}

.tanooki-faq-comparison thead th:last-child {
	border-top-right-radius: 7px;
}

.tanooki-faq-comparison .tanooki-faq-comparison__season th {
	padding: 8px 14px;
	border-right: 0;
	background: var(--faq-accent-soft);
	color: var(--faq-accent-dark);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-align: left;
	text-transform: uppercase;
}

.tanooki-faq-comparison tbody tr:not(.tanooki-faq-comparison__season):nth-child(odd) td {
	background: rgba(110, 95, 83, 0.035);
}

.tanooki-faq-comparison__note {
	margin-top: 12px;
	color: var(--faq-muted);
	font-size: 11px;
}

body.darkmode .tanooki-faq-comparison__scroll {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

body.darkmode .tanooki-faq-comparison thead th {
	background: #121011;
}

body.darkmode .tanooki-faq-comparison .tanooki-faq-comparison__season th {
	color: #ef91aa;
}

@media only screen and (max-width: 600px) {
	.tanooki-faq-comparison table {
		min-width: 0;
		font-size: 11px;
	}

	.tanooki-faq-comparison th,
	.tanooki-faq-comparison td {
		padding: 7px 4px;
	}

	.tanooki-faq-comparison thead th {
		font-size: 9px;
		line-height: 1.3;
		letter-spacing: 0.02em;
	}

	.tanooki-faq-comparison .tanooki-faq-comparison__season th {
		padding: 7px 9px;
		font-size: 10px;
	}
}

.tanooki-faq__navigator ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 34px;
  max-height: 330px;
  margin: 0;
  padding: 2px 38px 18px 51px;
  overflow: auto;
}

.tanooki-faq__navigator li {
  padding-left: 3px;
  color: var(--faq-muted);
  font-size: 11px;
  line-height: 1.45;
}

.tanooki-faq__navigator a {
  color: var(--faq-muted);
}

.tanooki-faq__navigator a:hover {
  color: var(--faq-accent);
  text-decoration: underline;
}

.tanooki-faq__list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  color: var(--faq-muted);
  font-size: 11px;
}

.tanooki-faq__list-header p {
  margin: 0;
}

.tanooki-faq__actions {
  white-space: nowrap;
}

.tanooki-faq .tanooki-faq__text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--faq-accent);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.tanooki-faq__list {
  display: grid;
  gap: 10px;
}

.tanooki-faq__item {
  overflow: hidden;
  border: 1px solid var(--faq-border);
  border-radius: 8px;
  background: var(--faq-card);
  box-shadow: 0 4px 13px rgba(54, 38, 31, 0.035);
  scroll-margin-top: 75px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tanooki-faq__item:hover {
  border-color: rgba(172, 54, 84, 0.35);
  box-shadow: 0 8px 20px rgba(54, 38, 31, 0.07);
  transform: translateY(-1px);
}

.tanooki-faq__item.is-open {
  border-color: var(--faq-accent);
  box-shadow: 0 10px 25px rgba(93, 28, 47, 0.09);
}

.tanooki-faq__question-heading {
  margin: 0;
  font-size: inherit;
}

.tanooki-faq .tanooki-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  min-height: 72px;
  padding: 14px 19px;
  border: 0;
  background: transparent;
  color: var(--faq-text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.48;
  text-align: left;
}

.tanooki-faq .tanooki-faq__question:focus-visible {
  outline: 2px solid var(--faq-accent);
  outline-offset: -3px;
}

.tanooki-faq__question-copy {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tanooki-faq__topic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 82px;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--faq-accent-soft);
  color: var(--faq-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tanooki-faq__item.is-open .tanooki-faq__question {
  color: var(--faq-accent);
}

.tanooki-faq__chevron {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--faq-accent);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.18s ease;
}

.tanooki-faq__item.is-open .tanooki-faq__chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.tanooki-faq__answer {
  border-top: 1px solid var(--faq-border);
  background: linear-gradient(180deg, var(--faq-accent-soft), transparent 75px);
}

.tanooki-faq__answer-inner {
  max-width: 820px;
  padding: 22px 66px 28px 116px;
  color: var(--faq-text);
  font-size: 14px;
  line-height: 1.82;
}

.tanooki-faq__answer-inner > :first-child {
  margin-top: 0;
}

.tanooki-faq__answer-inner > :last-child {
  margin-bottom: 0;
}

.tanooki-faq__answer-inner p {
  margin: 0 0 14px;
}

.tanooki-faq__answer-inner strong {
  color: var(--faq-accent-dark);
}

.tanooki-faq__answer-inner a {
  color: var(--faq-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(172, 54, 84, 0.35);
  text-underline-offset: 3px;
}

.tanooki-faq__empty {
  padding: 42px 20px;
  color: var(--faq-muted);
  text-align: center;
}

.tanooki-faq__empty-shield {
  display: block;
  margin-bottom: 7px;
  color: var(--faq-accent);
  font-size: 30px;
}

.tanooki-faq__empty strong {
  display: block;
  color: var(--faq-text);
}

.tanooki-faq__empty p {
  margin: 5px 0 0;
  font-size: 12px;
}

.tanooki-faq-notice {
  padding: 12px 15px;
  border-left: 3px solid #d63638;
  background: rgba(214, 54, 56, 0.08);
}

body.darkmode .tanooki-faq {
  --faq-bg: #171516;
  --faq-card: #211e20;
  --faq-text: #eee8e2;
  --faq-muted: #aaa09a;
  --faq-border: rgba(255, 255, 255, 0.1);
  --faq-accent-soft: rgba(210, 77, 111, 0.15);
  --faq-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

body.darkmode .tanooki-faq__hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.25) 48%, rgba(0, 0, 0, 0.08) 78%),
    url('../images/SHFAQ-banner.png') center center / cover no-repeat;
}

body.darkmode .tanooki-faq__navigator {
  background: rgba(255, 255, 255, 0.025);
}

body.darkmode .tanooki-faq__answer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(0, 0, 0, 0.16) 72px, rgba(0, 0, 0, 0.22) 100%);
}

body.darkmode .tanooki-faq__answer-inner strong {
  color: #f0b2c1;
}

body.darkmode .tanooki-faq__answer-inner a {
  color: #f2d3b8;
  text-decoration-color: rgba(242, 211, 184, 0.45);
}

body.darkmode .tanooki-faq__answer-inner a:hover,
body.darkmode .tanooki-faq__answer-inner a:focus {
  color: #fff1e4;
  text-decoration-color: currentColor;
}

@media (max-width: 880px) {
  .tanooki-faq-page {
    max-width: none;
  }

  .tanooki-faq__hero {
    min-height: 220px;
    padding: 38px 34px;
  }

  .tanooki-faq__workspace {
    padding: 34px 34px 40px;
  }

  .tanooki-faq__hero-decoration {
    right: 36px;
    width: 130px;
  }

  .tanooki-faq__answer-inner {
    padding-left: 116px;
  }
}

@media (max-width: 620px) {
  .tanooki-faq {
    border-radius: 8px;
  }

  .tanooki-faq__hero,
  body.darkmode .tanooki-faq__hero {
    min-height: 230px;
    padding: 30px 24px 52px;
    background-position: center, 62% center;
  }

  .tanooki-faq__hero-decoration {
    right: -15px;
    width: 135px;
  }

  .tanooki-faq__hero-copy {
    max-width: 85%;
  }

  .tanooki-faq__hero h1 {
    font-size: 32px;
  }

  .tanooki-faq__intro {
    font-size: 13px;
    line-height: 1.6;
  }

  .tanooki-faq__workspace {
    padding: 28px 16px 30px;
  }

  .tanooki-faq__search-panel {
    margin-top: -58px;
    padding: 16px;
  }

  .tanooki-faq__filters {
    flex-wrap: nowrap;
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 16px 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tanooki-faq__filters::-webkit-scrollbar {
    display: none;
  }

  .tanooki-faq .tanooki-faq__filter {
    flex: 0 0 auto;
  }

  .tanooki-faq__navigator ol {
    grid-template-columns: 1fr;
    padding: 2px 28px 18px 43px;
  }

  .tanooki-faq__list-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .tanooki-faq .tanooki-faq__question {
    min-height: 76px;
    padding: 14px;
    font-size: 13px;
  }

  .tanooki-faq__question-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .tanooki-faq__answer-inner {
    padding: 19px 22px 24px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tanooki-faq *,
  .tanooki-faq *::before,
  .tanooki-faq *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
